# CVE-2026-123012: Gogs allows users to write to readonly repositories using receive-pack + service=git-upload-pack confusion

- Severity: High 7.1 (CVSS:4.0, scored by mitre) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:L/SA: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.42%, higher than 37% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-23T17:03:41.000Z
- Modified: 2026-11-12T22:11:01.153Z
- Also known as: GHSA-wmfg-5p4h-5fw3, GO-2026-5712
- Related: CVE-2026-52810
- Weaknesses: CWE-178, CWE-284
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mitre

## Description

In Gogs 0.14.3, the Git Smart HTTP authorization layer in internal/route/repo/http.go allows a push when only read access was intended, a different vulnerability than CVE-2026-52810. This occurs because of a case-sensitivity desync between the authorization classifier and the request dispatcher: the gitHTTPIsPull function compares the Git action verb case-sensitively and defaults to pull (read access) for any unrecognized string, whereas the request dispatcher lowercases the same verb before routing it to the receive-pack handler. Capitalizing a single letter in the URL (e.g. info/Refs instead of info/refs, or git-receive-Pack instead of git-receive-pack) causes the classifier to misidentify a push as a pull, granting only read-level authorization, whereas the dispatcher routes it to the write handler. An authenticated read-only collaborator can exploit this to push to a private repository, creating, updating, or deleting refs.

(As written by CVE List.)

## Affected

- Gogs Gogs: 0.14.3
- gogs.io/gogs (Go): before 0.14.3; all versions

## Every score

- mitre: CVSS:4.0 7.1 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:L/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N`

## References

- <https://github.com/gogs/gogs/security/advisories/GHSA-wmfg-5p4h-5fw3> (exploit, advisory, related, web)
- <https://github.com/gogs/gogs/blob/3ba8aca90e17e5410b7e8b227c9f29256ac3e875/internal/route/repo/http.go#L415-L418> (product)
- <https://github.com/gogs/gogs/blob/3ba8aca90e17e5410b7e8b227c9f29256ac3e875/internal/route/repo/http.go#L64-L68> (product)
- <https://humanoid.sh/blog/gogs-cve-2026-123012/> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-52810> (advisory)
- <https://github.com/gogs/gogs/pull/8331> (web)
- <https://github.com/gogs/gogs/commit/7c9cf53aca957959bcd98b0cc987d9901b7cb184> (web)
- <https://github.com/gogs/gogs> (package)
- <https://github.com/gogs/gogs/releases/tag/v0.14.3> (web)

## Sources

- CVE List: [CVE-2026-123012](https://www.cve.org/CVERecord?id=CVE-2026-123012), CVE Terms of Use, modified 2026-11-09
- GitHub Advisory Database: [GHSA-wmfg-5p4h-5fw3](https://github.com/advisories/GHSA-wmfg-5p4h-5fw3), CC-BY-4.0, modified 2026-11-05
- Go Vulnerability Database: [GO-2026-5712](https://pkg.go.dev/vuln/GO-2026-5712), CC-BY-4.0, modified 2026-11-05
- NVD: [CVE-2026-123012](https://nvd.nist.gov/vuln/detail/CVE-2026-123012), Public domain, modified 2026-11-12

---

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