CVE-2026-52806 Gogs: RCE via git rebase --exec argument injection in pull request merge
CriticalCVSS 9.9
EPSS 7.9%
Framework module
Scanner template
- Published
- Updated
- Exploit status
- Public exploit available
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
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.
Upgrade path
2 packages: 0 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| gogs.io/gogs(Go) | < 0.14.3; All versions | 0.14.3 | Partially fixed |
| gogs | = < 0.14.3 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| gogs | = < 0.14.3 | No fix listed |
| gogs.io/gogs(Go) | < 0.14.3 | 0.14.3 |
| gogs.io/gogs(Go) | All versions | No fix listed |
References
- https://github.com/gogs/gogs/security/advisories/GHSA-qf6p-p7ww-cwr9 exploit vendor-advisory
- https://github.com/gogs/gogs/pull/8301 patch
- https://github.com/gogs/gogs/commit/a9dbafbfd8e1020bacc626420238c01d75d03364 patch
- https://github.com/gogs/gogs/releases/tag/v0.14.3
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- github.com