PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-123012 Gogs CVE debrief

Git smart HTTP in Gogs incorrectly authorizes POST requests to the receive-pack endpoint by evaluating the client-supplied service query string, allowing users to push to read-only repositories. This vulnerability affects Gogs deployments, enabling unauthorized repository modifications. Defenders should verify affected deployments, restrict write access, and apply patches to prevent unauthorized repository modifications. The source corpus provides details on the vulnerability, including the incorrect authorization logic in Gogs' Git Smart HTTP handler. However, specific version information and exploitation details are limited. To address this vulnerability, defenders should assess

Vendor
Gogs
Product
gogs.io/gogs
CVSS
HIGH 7.1
CISA KEV
Not listed in stored evidence
Original CVE published
2026-11-05
Original CVE updated
2026-11-12
Advisory published
2026-11-05
Advisory updated
2026-11-12

Who should care

Defenders responsible for Gogs deployments, repository administrators, and security teams should assess exposure and prioritize remediation to prevent unauthorized repository modifications.

Why it matters

CVE-2026-123012 allows users to push to read-only repositories in Gogs due to incorrect authorization logic in Git smart HTTP. Defenders should verify affected deployments, restrict write access, and apply patches to prevent unauthorized repository modifications.

  • Verify and restrict write access to repositories to prevent unauthorized modifications
  • Assess Gogs deployments for vulnerability and apply patches or mitigations
  • Monitor repository changes for signs of exploitation

Technical summary

Gogs' Git Smart HTTP handler incorrectly derives access mode from the client-supplied service query parameter instead of the actual RPC path. This allows a request to POST to the write endpoint (receive-pack) while including a query string indicating a read service (upload-pack), enabling unauthorized write access to read-only repositories. The vulnerability arises from the Git protocol's exposure of two primary RPCs over HTTP: `upload-pack` for fetch (read) and `receive-pack` for push (write). In the affected implementation, the code derives the access mode from the `service` query parameter (for example, `service=git-upload-pack`) instead of the actual RPC path being executed. Route dispatch still executes G

Defensive priority

Defenders should prioritize verifying affected Gogs deployments, restricting write access, and applying patches to prevent unauthorized repository modifications.

Recommended defensive actions

  • Verify if Gogs deployments are affected and apply patches or mitigations
  • Restrict write access to repositories for users who should only have read access
  • Monitor repository modifications for unauthorized changes
  • Review compensating controls for exposed systems while remediation is scheduled and verified
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up

Evidence notes

The source corpus provides details on the vulnerability, including the incorrect authorization logic in Gogs' Git Smart HTTP handler. However, specific version information and exploitation details are limited.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-123012 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-123012

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-123012 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-123012

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.