Security mailing lists by PureSourceCode

CVE-2026-123012

HIGH 7.1CVSS 4.0

Gogs allows users to write to readonly repositories using receive-pack + service=git-upload-pack confusion

In Gogs 0.14.3, the Git Smart HTTP authorization layer in internal/route/repo/http.go allows a push when only read access was intended, a different vulnerability than CVE-2026-52810. This occurs because of a case-sensitivity desync between the authorization classifier and the request dispatcher: the gitHTTPIsPull function compares the Git action verb case-sensitively and defaults to pull (read access) for any unrecognized string, whereas the request dispatcher lowercases the same verb before routing it to the receive-pack handler. Capitalizing a single letter in the URL (e.g. info/Refs instead of info/refs, or git-receive-Pack instead of git-receive-pack) causes the classifier to misidentify a push as a pull, granting only read-level authorization, whereas the dispatcher routes it to the write handler. An authenticated read-only collaborator can exploit this to push to a private repository, creating, updating, or deleting refs.

Published
5 Nov 2026
Last modified
12 Nov 2026
Assigned by
cve@mitre.org
NVD status
Deferred
Weakness
CWE-178CWE-284
Also known as
CVE-2026-52810GHSA-wmfg-5p4h-5fw3GO-2026-5712
Sources
NVDJSONOSV GHSA-wmfg-5p4h-5fw3JSONOSV GO-2026-5712JSON

Scores

SourceScored byVersionScoreVector / decision
NVD cve@mitre.org (Secondary) CVSS 4.0 HIGH 7.1 CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
OSV GitHub 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Go gogs.io/gogs < 0.14.3 0.14.3
OSV Go gogs.io/gogs all versions

References

History

  • 25 Nov 2026 21:23 UTC · NVD: first stored (published 5 Nov 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Jun 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 23 Jun 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.