CVE-2026-123012
HIGH 7.1CVSS 4.0Gogs allows users to write to readonly repositories using receive-pack + service=git-upload-pack confusion
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.
- Published
- 5 Nov 2026
- Last modified
- 12 Nov 2026
- Assigned by
- cve@mitre.org
- NVD status
- Deferred
- Weakness
- CWE-178CWE-284
- Also known as
- CVE-2026-52810GHSA-wmfg-5p4h-5fw3GO-2026-5712
- Sources
- NVDJSONOSV GHSA-wmfg-5p4h-5fw3JSONOSV GO-2026-5712JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | cve@mitre.org (Secondary) | CVSS 4.0 | HIGH 7.1 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | gogs.io/gogs | < 0.14.3 | 0.14.3 |
| OSV | Go | gogs.io/gogs | all versions |
References
- https://github.com/gogs/gogs/blob/3ba8aca90e17e5410b7e8b227c9f29256ac3e875/internal/route/repo/http.go#L415-L418
- https://github.com/gogs/gogs/blob/3ba8aca90e17e5410b7e8b227c9f29256ac3e875/internal/route/repo/http.go#L64-L68
- https://github.com/gogs/gogs/security/advisories/GHSA-wmfg-5p4h-5fw3 · WEB, ADVISORY
- https://humanoid.sh/blog/gogs-cve-2026-123012/
- 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
History
- 25 Nov 2026 21:23 UTC · NVD: first stored (published 5 Nov 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Jun 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 23 Jun 2026)