CVE-2026-52810 PUBLISHED

Gogs: Write to readonly repositories using receive-pack + service=git-upload-pack confusion

Assigner: GitHub_M
Reserved: 08.06.2026 Published: 24.06.2026 Updated: 25.06.2026

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.

Metrics

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
CVSS Score: 7.1

Product Status

Vendor gogs
Product gogs
Versions
  • Version < 0.14.3 is affected

References

Problem Types

  • CWE-284: Improper Access Control CWE