Vulnerability advisory
CVE-2026-52810
Gogs: Write to readonly repositories using receive-pack + service=git-upload-pack confusion
Also known as CVE-2026-123012GHSA-wmfg-5p4h-5fw3GO-2026-5712
Severity
- 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 versions
Repository
| Affected commits | Fixed by commit |
|---|---|
| GIT github.com/gogs/gogs ↗ | |
| All commits before 3ba8aca90e17e5410b7e8b227c9f29256ac3e875 | 3ba8aca90e17e5410b7e8b227c9f29256ac3e875 |
| Not specified | 7c9cf53aca957959bcd98b0cc987d9901b7cb184 |
Also listed as affected (60)
| |
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.
References
- Webgithub.com/gogs/gogs/releases/tag/v0.14.3 ↗
- Advisorygithub.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52810.json ↗
- Advisorygithub.com/gogs/gogs/security/advisories/GHSA-wmfg-5p4h-5fw3 ↗
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-52810 ↗
- Fixgithub.com/gogs/gogs/commit/7c9cf53aca957959bcd98b0cc987d9901b7cb184 ↗
- Fixgithub.com/gogs/gogs/pull/8331 ↗