Vulnerability · Published Jun 24, 2026 · Assigned by GitHub_M
CVE-2026-52806Gogs: RCE via git rebase --exec argument injection in pull request merge
Critical 9.9
In plain English
A critical-severity command injection in gogs from gogs. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 7.9% (higher than 95% of all known vulnerabilities). Ready-made attack tooling exists: Metasploit, Nuclei. Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | gogs.io/gogs | 0.14.3 | GHSA-qf6p-p7ww-cwr9 |
| Go | gogs.io/gogs | no fix listed | GO-2026-5580 |
Affected products (as reported)
Weakness: CWE-77 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/gogs/gogs/security/advisories/GHSA-qf6p-p7ww-cwr9 x_refsource_CONFIRM
- https://github.com/gogs/gogs/pull/8301 x_refsource_MISC
- https://github.com/gogs/gogs/commit/a9dbafbfd8e1020bacc626420238c01d75d03364 x_refsource_MISC
- https://github.com/gogs/gogs/releases/tag/v0.14.3 x_refsource_MISC