{"id":"CVE-2026-52810","published":"2026-06-24T20:30:41Z","modified":"2026-06-25T14:39:12Z","title":"Gogs: Write to readonly repositories using receive-pack + service=git-upload-pack confusion","vendor":"gogs","product":"gogs","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00427,"percentile":0.37866,"provenance":"source"},"cwes":[{"id":"CWE-284","name":"Improper Access Control"}],"references":[{"url":"https://github.com/gogs/gogs/security/advisories/GHSA-wmfg-5p4h-5fw3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gogs/gogs/pull/8331","tags":["x_refsource_MISC"]},{"url":"https://github.com/gogs/gogs/commit/7c9cf53aca957959bcd98b0cc987d9901b7cb184","tags":["x_refsource_MISC"]},{"url":"https://github.com/gogs/gogs/releases/tag/v0.14.3","tags":["x_refsource_MISC"]}],"priority":{"score":17.5,"factors":[{"name":"EPSS percentile","points":7.57},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.97}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-09-03","earliestUrl":"https://github.com/HORKimhab/CVE-2026-52810","repos":[{"name":"HORKimhab/CVE-2026-52810","url":"https://github.com/HORKimhab/CVE-2026-52810","stars":0,"created":"2026-09-03"}]},"first":{"date":"2026-09-03","source":"PoC-in-GitHub","url":"https://github.com/HORKimhab/CVE-2026-52810"},"provenance":"source"},"vendorSlug":"gogs","affectedVersions":[{"vendor":"gogs","product":"gogs","versions":["< 0.14.3"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-25T14:38:54.280743Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"gogs.io/gogs","vulnerableRanges":["<0.14.3","all versions"],"patched":["0.14.3"],"from":["GHSA-wmfg-5p4h-5fw3","GO-2026-5712"],"provenance":"source"}],"summary":{"text":"The flaw is in Gogs, the open source self-hosted Git service, in its Git smart HTTP handling: prior to 0.14.3, the authorization check for pushes trusts the client-supplied service query parameter. Exploiting it requires an account with low privileges on the server (the attack vector is network-reachable and needs no user interaction), and the attacker can then push to repositories they only have read access to, by sending a request that claims to be a read operation (service=git-upload-pack) while the push is still processed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:48:31Z"},"euvd":{"id":"EUVD-2026-39081","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-gogs-cve-2022-1992","parents":[{"from":"CVE-2024-55947","to":"CVE-2026-52810","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["internal/route/repo/http.go"],"commits":["https://github.com/gogs/gogs/commit/9a9388ace25bd646f5098cb9193d983332c34e41","https://github.com/gogs/gogs/commit/7c9cf53aca957959bcd98b0cc987d9901b7cb184"],"basis":"rarely changed file"}]}],"children":[{"from":"CVE-2026-52810","to":"CVE-2026-123012","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-wmfg-5p4h-5fw3","via":"reference","url":"https://github.com/gogs/gogs/security/advisories/GHSA-wmfg-5p4h-5fw3"}]}]}}