CVE-2026-123012

Published Nov 5, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

In Gogs 0.14.3 the Git Smart HTTP authorization layer performs a case‑sensitive comparison of the Git action verb. When a request contains a verb with a capitalized letter—for example, "info/Refs" or "git-receive-Pack"—the authorization classifier treats the operation as a pull with read‑only access, while the dispatcher routes the request to the receive‑pack handler that requires write permissions. As a result, an authenticated user with read‑only permissions can push to a private repository, creating, updating, or deleting refs.

Affected Systems

The issue is confined to the Gogs self‑hosted Git service version 0.14.3, specifically within the internal/route/repo/http.go component that handles HTTP push requests. No official patch is available for this release; the vendor recommends a code‑level fix that uses a case‑insensitive comparison and also offers a temporary workaround.

Risk and Exploitability

The CVSS score of 7.1 indicates high severity. Because the EPSS score is less than 1 %, the probability that the vulnerability is actively exploited is very low, and the flaw is not listed in CISA’s KEV catalog. The likely attack vector involves an authenticated, read‑only user issuing an HTTP push request with a deliberately capitalized verb. If successful, the attacker gains write access to a private repository, which could enable arbitrary code execution or data tampering. The overall risk is moderate to high for deployments that expose Git over HTTP and should be mitigated promptly.

Remediation

Vendor Solution

No patch available. Use case-insensitive comparison (strings.EqualFold) in gitHTTPIsPull in internal/route/repo/http.go


Vendor Workaround

Disable Git Smart HTTP access (set DISABLE_HTTP_GIT = true in app.ini) and use SSH-only for Git operations


OpenCVE Recommended Actions

  • Modify the gitHTTPIsPull function in internal/route/repo/http.go to use strings.EqualFold for a case‑insensitive verb comparison, as recommended by the vendor.
  • Set DISABLE_HTTP_GIT=true in app.ini to disable Git Smart HTTP access and force checkout and push operations to use SSH only.
  • Reconfigure Git clients to use SSH URLs for all repositories, ensuring that push operations cannot occur over HTTP.

Generated by OpenCVE AI on November 6, 2026 at 19:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title Unauthorized HTTP Push by Read‑Only User in Gogs 0.14.3
Type Values Removed Values Added
Description 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 inconsistency about whether a verb is checked in a case-sensitive manner. 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.
References
Type Values Removed Values Added
Title Unauthorized HTTP Push by Read‑Only User in Gogs 0.14.3
Type Values Removed Values Added
Description 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 inconsistency about whether a verb is checked in a case-sensitive manner, 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 inconsistency about whether a verb is checked in a case-sensitive manner.
References
Type Values Removed Values Added
Description 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 inconsistency about whether a verb is checked in a case-sensitive manner,
First Time appeared Gogs
Gogs gogs
Weaknesses CWE-178
CPEs cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:*
Vendors & Products Gogs
Gogs gogs
References
Metrics cvssV4_0

{'score': 7.1, 'vector': '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'}

Weaknesses
  • CWE-178

    Improper Handling of Case Sensitivity

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Nov 9, 2026, 8:36 PM
Reserved
Nov 5, 2026, 4:52 AM
Status
Deferred
Published
Nov 5, 2026, 5:18 AM
Modified
Nov 12, 2026, 10:11 PM