RCE in Gogs

CVE-2026-52806

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.

Vulnerability class: Command Injection (OS Command Injection)

Published · last modified .

CVSS v3 metric

CVSS v3 base score 9.9 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H.

EPSS exploit prediction

EPSS: 0.079 (94.5th percentile), scored .

Low probability of exploitation in the next 30 days, but still tracked. 95th percentile — 94.5% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2026-52806: held from 0.079 to 0.079.

EPSS over last 30 days · oldest: 0.079 · newest: 0.079 · change: 0.000

Affected products

  • Gogs — versions < 0.14.3

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2026-52806?
CVE-2026-52806 is a critical-severity vulnerability in Gogs, classified under Command Injection. CVSS score: 9.9/10. Published 2026-06-24.
How severe is CVE-2026-52806?
Critical severity. CVSS v3 base score is 9.9 out of 10.
Is CVE-2026-52806 known to be exploited?
2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.