CVE-2026-123012
Deferred Deferred - Pending Action

Gogs Smart HTTP Authorization Bypass in Version 0.14.3

Vulnerability report for CVE-2026-123012, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-05

Last updated on: 2026-11-12

Assigner: MITRE

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-05
Last Modified
2026-11-12
Generated
2026-11-13
AI Q&A
2026-11-05
EPSS Evaluated
2026-11-12
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
Gogs Gogs 0.14.3

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-178 The product does not properly account for differences in case sensitivity when accessing or determining the properties of a resource, leading to inconsistent results.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-123012 is a vulnerability in Gogs 0.14.3 where the Git Smart HTTP authorization layer incorrectly allows write operations when only read access was intended. This happens due to case-sensitive inconsistencies in verb checks during authorization.

Detection Guidance

To detect this vulnerability, inspect Gogs server logs for POST requests to /git-receive-pack with a service=git-upload-pack query parameter. Check for unauthorized write operations in repositories where users only have read access. Review access control policies for inconsistencies between intended and actual permissions.

Impact Analysis

An attacker could push unauthorized changes to a repository they only have read access to, potentially overwriting the main branch or introducing malicious code. This affects repository integrity and availability.

Compliance Impact

This vulnerability allows unauthorized write access to repositories that should only permit read access. This could lead to unauthorized modifications of sensitive data, violating integrity and confidentiality requirements in standards like GDPR and HIPAA. Unauthorized changes to repositories storing personal or health data could result in data breaches or loss of data integrity, triggering compliance violations and potential legal penalties.

Mitigation Strategies

Upgrade Gogs to a version beyond 0.14.3 to address the authorization bypass in Git Smart HTTP handling. Review repository permissions to ensure collaborators have only the intended access levels. Monitor for unauthorized pushes or modifications to repositories.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-123012. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...