Security Digest · Vulnerability record

CVE-2026-52806: Gogs vulnerable to RCE via git rebase --exec argument injection in pull request merge

Gogs is an open source self-hosted Git service.

CVSS 9.9 Critical EPSS 7.9% · p95

Should you act?

Critical, preconditions apply

Severe if exploited, but exploitation needs conditions that may not apply to you. This signal is computed from CISA KEV, EPSS and CVSS data; it is not an editorial verdict.

  • Not in CISA KEV, but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
  • EPSS 7.9%, percentile 95: FIRST’s model estimates a 7.9% chance of exploitation activity in the next 30 days, higher than 95% of all scored CVEs (elevated). EPSS is a probability, not a verdict.
  • Needs an account (low (any account)). Exposure depends on who can log in.
  • Only applies if your dependency tree includes gogs.io/gogs (Go) < 0.14.3, fixed in 0.14.3. Check your lockfile, including transitive dependencies.

What it is

Gogs is an open source self-hosted Git service. Prior to 0.14.3, Gogs allows authenticated users to achieve Remote Code Execution (RCE) on the server by creating a pull request with a specially crafted branch name that injects the --exec flag into the git rebase command during the "Rebase before merging" merge operation. This vulnerability is fixed in 0.14.3.

From the GitHub advisory

Gogs: RCE via git rebase --exec Argument Injection in PR Merge

Summary

Gogs allows authenticated users to achieve Remote Code Execution (RCE) on the server by creating a pull request with a specially crafted branch name that injects the --exec flag into the git rebase command during the "Rebase before merging" merge operation.

Severity

Critical - CVSS 3.1 Base Score: 9.9 (AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H)

Weakness type: CWE-77.

Product: gogs.io/gogs (Go) · Assigned by: GitHub_M · Published: 2026-06-24

Affected and fixed versions

EcosystemPackageVulnerableFirst fixed
Gogogs.io/gogs< 0.14.30.14.3
VendorProductAffected versions (per CVE record)
gogsgogs< 0.14.3

Severity scores

Scored byCVSSScoreVector
GitHub_M3.19.9 CriticalCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
GitHub3.19.9 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
  • Attack vector: network (remotely reachable)
  • Attack complexity: low
  • Privileges required: low (any account)
  • User interaction: none
  • Scope: changed (can affect other components)

CVSS measures how bad a flaw is if exploited, not how likely exploitation is. Read it next to the exploitation data below.

Exploitation and urgency

  • CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
  • CISA SSVC assessment: exploitation poc, automatable no, technical impact total.
  • FIRST EPSS (model of 2026-10-21): 7.93% probability of exploitation activity in the next 30 days; percentile 95.

Timeline

  • — GitHub-reviewed advisory GHSA-qf6p-p7ww-cwr9 published (critical)
  • — CVE record published by GitHub_M
  • — CVE record last updated

Sources and references

Original sources first. Version and fix details should always be confirmed against the vendor or project advisory.

Vulnerability records

  1. GitHub Advisory GHSA-qf6p-p7ww-cwr9 github.com
  2. CVE.org record CVE-2026-52806 cve.org
  3. NVD entry CVE-2026-52806 nvd.nist.gov

Other references from the CVE record and advisory

  1. github.com github.com
  2. github.com github.com
  3. github.com github.com
  4. github.com github.com

Critical Go advisories · Today’s Security Digest