Vulnerability advisory
CVE-2026-52806
Gogs: RCE via git rebase --exec argument injection in pull request merge
Also known as GHSA-qf6p-p7ww-cwr9GO-2026-5580
Severity
- CVSS 3.x
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Affected versions
Repository
| Affected commits | Fixed by commit |
|---|---|
| GIT github.com/gogs/gogs ↗ | |
| All commits before 3ba8aca90e17e5410b7e8b227c9f29256ac3e875 | 3ba8aca90e17e5410b7e8b227c9f29256ac3e875 |
| Not specified | a9dbafbfd8e1020bacc626420238c01d75d03364 |
Also listed as affected (60)
| |
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.
References
- Webgithub.com/gogs/gogs/releases/tag/v0.14.3 ↗
- Advisorygithub.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52806.json ↗
- Advisorygithub.com/gogs/gogs/security/advisories/GHSA-qf6p-p7ww-cwr9 ↗
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-52806 ↗
- Fixgithub.com/gogs/gogs/commit/a9dbafbfd8e1020bacc626420238c01d75d03364 ↗
- Fixgithub.com/gogs/gogs/pull/8301 ↗