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 f…

Vulnerability class: Command Injection (OS Command Injection)

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.

Affected products

  • Gogs — versions < 0.14.3

Weakness classification (CWE)

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.