What’s Vulnerable › Vulnerabilities
CVE-2026-52806: Gogs: RCE via git rebase --exec argument injection in pull request merge
- Severity: critical (CVSS 9.9 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 7.9% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-06-24 · updated 2026-06-26
- Weakness: CWE-77
Description
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.
Affected products
- gogs: before 0.14.3
References
- https://github.com/gogs/gogs/commit/a9dbafbfd8e1020bacc626420238c01d75d03364
- https://github.com/gogs/gogs/pull/8301
- https://github.com/gogs/gogs/releases/tag/v0.14.3
- https://github.com/gogs/gogs/security/advisories/GHSA-qf6p-p7ww-cwr9
- https://github.com/gogs/gogs/security/advisories/GHSA-qf6p-p7ww-cwr9
Get alerted when CVE-2026-52806 or the next vulnerability affects your stack