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.8th percentile (scored ); unchanged over 30 days. About EPSS.

Affected products

  • Gogs — versions < 0.14.3

Weakness classification (CWE)

Public exploits and proof-of-concept code

Metasploit modules

1 public repository with exploit or proof-of-concept code for this CVE:

  • portbuster1337/CVE-2026-52806 (7 stars, last pushed 2026-07-06): Gogs RCE via argument injection in git rebase (CWE-88) — Python PoC. CVE-2026-52806

References