Vulnerability · Published Jun 24, 2026 · Assigned by GitHub_M
CVE-2026-52810Gogs: Write to readonly repositories using receive-pack + service=git-upload-pack confusion
High 7.1
In plain English
A high-severity improper access control in gogs from gogs. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 37% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
Gogs is an open source self-hosted Git service. Prior to 0.14.3, Git smart HTTP authorizes POST …/git-receive-pack using the client-supplied service query string (so ?service=git-upload-pack is evaluated as read access) while routing still runs git receive-pack, allowing push where only read should be allowed. This vulnerability is fixed in 0.14.3.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | gogs.io/gogs | 0.14.3 | GHSA-wmfg-5p4h-5fw3 |
| Go | gogs.io/gogs | no fix listed | GO-2026-5712 |
Affected products (as reported)
Weakness: CWE-284 · Vector: 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 x_refsource_CONFIRM
- https://github.com/gogs/gogs/pull/8331 x_refsource_MISC
- https://github.com/gogs/gogs/commit/7c9cf53aca957959bcd98b0cc987d9901b7cb184 x_refsource_MISC
- https://github.com/gogs/gogs/releases/tag/v0.14.3 x_refsource_MISC