{"id":"CVE-2025-68940","published":"2025-12-26T02:14:52Z","modified":"2025-12-26T18:57:56Z","title":"In Gitea before 1.22.5, branch deletion permissions are not adequately enforced after merging a pull request","vendor":"Gitea","product":"Gitea","tier":"tail","description":{"text":"In Gitea before 1.22.5, branch deletion permissions are not adequately enforced after merging a pull request.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.1,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00272,"percentile":0.2006,"provenance":"source"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"references":[{"url":"https://blog.gitea.com/release-of-1.22.5/","tags":[]},{"url":"https://github.com/go-gitea/gitea/releases/tag/v1.22.5","tags":[]},{"url":"https://github.com/go-gitea/gitea/pull/32654","tags":[]}],"priority":{"score":6.2,"factors":[{"name":"EPSS percentile","points":4.01},{"name":"CVSS severity","points":2.17}]},"vendorSlug":"gitea","affectedVersions":[{"vendor":"Gitea","product":"Gitea","versions":["< 1.22.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-12-26T14:42:20.321275Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"code.gitea.io/gitea","vulnerableRanges":["<1.22.5"],"patched":["1.22.5"],"from":["GHSA-rrcw-5rjv-vj26","GO-2025-4267"],"provenance":"source"}],"summary":{"text":"Gitea, before version 1.22.5, fails to adequately enforce branch deletion permissions after a pull request has been merged, due to an incorrect authorization flaw in the branch deletion handling. An attacker with low-privilege authenticated access over the network can exploit this to delete branches they should not be permitted to remove, though the attack is hard to reproduce, and no user interaction is needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:19:33Z"},"euvd":{"id":"EUVD-2025-205410","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-68942","published":"2025-12-26","fixed":"1.22.2","kev":false},{"cve":"CVE-2025-68944","published":"2025-12-26","fixed":"1.22.2","kev":false},{"cve":"CVE-2025-68941","published":"2025-12-26","fixed":"1.22.3","kev":false,"link":{"from":"CVE-2025-68941","to":"CVE-2025-68940","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:code.gitea.io/gitea","fromFixed":"1.22.3","toFixed":"1.22.5","daysApart":0}]}},{"cve":"CVE-2025-68940","published":"2025-12-26","fixed":"1.22.5","kev":false},{"cve":"CVE-2025-68939","published":"2025-12-26","fixed":"1.23.0-rc0","kev":false,"link":{"from":"CVE-2025-68940","to":"CVE-2025-68939","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:code.gitea.io/gitea","fromFixed":"1.22.5","toFixed":"1.23.0-rc0","daysApart":0}]}},{"cve":"CVE-2025-68938","published":"2025-12-26","fixed":"1.25.2","kev":false},{"cve":"CVE-2025-69413","published":"2026-01-01","fixed":"1.25.2","kev":false}],"package":"Go:code.gitea.io/gitea"}}