# CVE-2025-68940: Gitea doesn't adequately enforce branch deletion permissions after merging a pull request.

- Severity: Low 3.1 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2025-12-26T02:14:52.076Z
- Modified: 2026-10-13T10:10:00.193Z
- Also known as: GHSA-rrcw-5rjv-vj26, BIT-GITEA-2025-68940, GO-2025-4267
- Weaknesses: CWE-863
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

In Gitea before 1.22.5, branch deletion permissions are not adequately enforced after merging a pull request.

(As written by CVE List.)

## Affected

- Gitea Gitea: before 1.22.5
- code.gitea.io/gitea (Go): before 1.22.5
- gitea (Bitnami): before 1.22.5

## Every score

- mitre: CVSS:3.1 3.1 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 3.1 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://blog.gitea.com/release-of-1.22.5/> (article, release-notes)
- <https://github.com/go-gitea/gitea/releases/tag/v1.22.5> (article, release-notes, web)
- <https://github.com/go-gitea/gitea/pull/32654> (fix, issue-tracking, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-68940> (advisory, web)
- <https://blog.gitea.com/release-of-1.22.5> (web)
- <https://github.com/go-gitea/gitea> (package)
- <https://github.com/advisories/GHSA-rrcw-5rjv-vj26> (advisory)

## Sources

- CVE List: [CVE-2025-68940](https://www.cve.org/CVERecord?id=CVE-2025-68940), CVE Terms of Use, modified 2025-12-26
- GitHub Advisory Database: [GHSA-rrcw-5rjv-vj26](https://github.com/advisories/GHSA-rrcw-5rjv-vj26), CC-BY-4.0, modified 2026-01-03
- Go Vulnerability Database: [GO-2025-4267](https://pkg.go.dev/vuln/GO-2025-4267), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2025-68940](https://nvd.nist.gov/vuln/detail/CVE-2025-68940), Public domain, modified 2026-10-13
- Bitnami Vulnerability Database: [BIT-GITEA-2025-68940](https://osv.dev/vulnerability/BIT-GITEA-2025-68940), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2025-68940 · Whole record: https://cve.day/CVE-2025-68940.json · Rebuilt by cve.day 2026-11-25T22:59:09.926Z
