# CVE-2026-58439: Branch Protection Bypass via PR Retargeting Preserves Stale `official` Approval Flag

- Severity: High 8.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- 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.28%, higher than 22% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-21T20:14:12.000Z
- Modified: 2026-08-26T16:53:48.300Z
- Also known as: GHSA-w5pg-649r-p6gg, GO-2026-6080
- Weaknesses: CWE-284, CWE-863
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: Gitea

## Description

Branch Protection Bypass via PR Retargeting Preserves Stale `official` Approval Flag

(As written by CVE List.)

## Affected

- Gitea Gitea Open Source Git Server: up to 1.26.4
- code.gitea.io/gitea (Go): before 1.27.0; all versions

## Every score

- CISA-ADP: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`

## References

- <https://github.com/go-gitea/gitea/security/advisories/GHSA-w5pg-649r-p6gg> (exploit, advisory, vendor-advisory, web)
- <https://github.com/go-gitea/gitea/releases/tag/v1.27.0> (release-notes, web)
- <https://blog.gitea.com/gitea-1.27.0-is-released/> (release-notes)
- <https://github.com/go-gitea/gitea/pull/38319> (web)
- <https://github.com/go-gitea/gitea/pull/38402> (web)
- <https://github.com/go-gitea/gitea/commit/74ad781db9c37134ee9280c69a6b1de53801503e> (web)
- <https://github.com/go-gitea/gitea/commit/8401fe7c544abff1ecc49d7f3166fd4ee0c174ef> (web)
- <https://github.com/go-gitea/gitea> (package)

## Sources

- CVE List: [CVE-2026-58439](https://www.cve.org/CVERecord?id=CVE-2026-58439), CVE Terms of Use, modified 2026-08-14
- GitHub Advisory Database: [GHSA-w5pg-649r-p6gg](https://github.com/advisories/GHSA-w5pg-649r-p6gg), CC-BY-4.0, modified 2026-08-04
- Go Vulnerability Database: [GO-2026-6080](https://pkg.go.dev/vuln/GO-2026-6080), CC-BY-4.0, modified 2026-07-27
- NVD: [CVE-2026-58439](https://nvd.nist.gov/vuln/detail/CVE-2026-58439), Public domain, modified 2026-08-26

---

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