Servers and applications
CVE-2026-52810
Write to readonly repositories using receive-pack + service=git-upload-pack confusion
- Severity
- High 7.1
- Published
- 19 Jun 2026
- Last changed
- 19 Jun 2026
- Added to UpHeron
- 3 Nov 2026
- Fixed in
- 0.14.3
- Exploit chance
- 0.4% in the next 30 daysHigher than 37% of CVEs. EPSS by FIRST, 18 Nov 2026
- Attack
- Over the network · Needs a user account · No user action needed
- Attacker can
- Change data · Slow it down
- CVSS 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- Also known as
- GHSA-wmfg-5p4h-5fw3
- Sources
- Project advisories (GitHub)
Description
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.
Gogs' Git Smart HTTP handler for repository RPCs relies on a client-supplied query parameter to decide which authorization policy to apply. The Git protocol exposes two primary RPCs over HTTP: upload-pack for fetch (read) and receive-pack for push (write).
In the affected implementation, the code derives the access mode from the service query parameter (for example, service=git-upload-pack) instead of the actual RPC path being executed. As a result, a request sent to the receive-pack endpoint can be incorrectly treated as a read operation if the query parameter claims it is an upload-pack. This behavior enables a request to POST to the write endpoint (/repo.git/git-receive-pack) while including a query string that indicates a read service.
Affected software
| Software | Affected versions |
|---|---|
GogsServers and applications · github:gogs/gogs |
|
About Gogs
free forge based on Git written in Go
- Docker Hub pulls
- 94,040,857Docker Hub, 15 Nov 2026
- GitHub stars
- 47,939GitHub, 15 Nov 2026
- Forks
- 5,082GitHub, 15 Nov 2026
- Latest release
- v0.14.4GitHub, 15 Nov 2026
- Released
- 12 Nov 2026GitHub
- Developer
- FLOSS contributorWikidata
- License
- Expat licenseWikidata
- Written in
- Go, Cascading Style Sheets, JavaScriptWikidata
- First released
- 11 Feb 2014Wikidata
- First published on GitHub
- 12 Feb 2014GitHub
Website Source code Docker image
Vulnerabilities in Gogs
- In our list
- 87
- Published in the last 12 months
- 53
- Critical, last 12 months
- 5
- High, last 12 months
- 22
- Known exploited
- 1
- GHSA-8r2x-49gj-h6rmProtected Branch Bypass via Pull Request Merge Due to Missing Hook Environment VariablesHigh 8.3 18 Nov 2026
- GHSA-7cvr-7cff-2mrgLDAP login selects the local account by email while the directory identity is searched by uid: an unrelated directory entry whose uid attribute equals a victim's Gogs email authenticates as that account - including site adminsMedium 18 Nov 2026
- GHSA-6972-pq3q-8w9rStored cross-site scripting in Gogs commit subjects through the external issue tracker formatHigh 8.7 18 Nov 2026
- GHSA-f9vc-qvc8-p7cfTwo-factor authentication bypass in the Gogs web API through a leading-slash path mismatchHigh 8.1 18 Nov 2026
- GHSA-p27c-f9fr-4jmwRemote process crash in Gogs diff rendering via a quoted rename pathHigh 7.5 16 Nov 2026
- GHSA-vghx-gp7m-xpx2CSRF: Milestone open/close via GET request (CWE-352)Low 16 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-52810
- GitHub Advisory Database https://github.com/advisories/GHSA-wmfg-5p4h-5fw3
- github.com https://github.com/gogs/gogs/security/advisories/GHSA-wmfg-5p4h-5fw3