# CVE-2026-52806: Gogs: RCE via git rebase --exec argument injection in pull request merge

- Severity: Critical 9.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 7.91%, higher than 94% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-23T17:02:40.000Z
- Modified: 2026-07-21T13:45:25.183Z
- Also known as: GHSA-qf6p-p7ww-cwr9, GO-2026-5580
- Weaknesses: CWE-77
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- gogs gogs: < 0.14.3
- gogs.io/gogs (Go): before 0.14.3; all versions

## Every score

- GitHub_M: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.9 Critical `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> (exploit, advisory, web)
- <https://github.com/gogs/gogs/pull/8301> (web)
- <https://github.com/gogs/gogs/commit/a9dbafbfd8e1020bacc626420238c01d75d03364> (web)
- <https://github.com/gogs/gogs/releases/tag/v0.14.3> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-52806> (advisory)
- <https://github.com/gogs/gogs> (package)

## Sources

- CVE List: [CVE-2026-52806](https://www.cve.org/CVERecord?id=CVE-2026-52806), CVE Terms of Use, modified 2026-06-26
- GitHub Advisory Database: [GHSA-qf6p-p7ww-cwr9](https://github.com/advisories/GHSA-qf6p-p7ww-cwr9), CC-BY-4.0, modified 2026-07-21
- Go Vulnerability Database: [GO-2026-5580](https://pkg.go.dev/vuln/GO-2026-5580), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-52806](https://nvd.nist.gov/vuln/detail/CVE-2026-52806), Public domain, modified 2026-06-26

---

Page: https://cve.day/CVE-2026-52806 · Whole record: https://cve.day/CVE-2026-52806.json · Rebuilt by cve.day 2026-11-25T22:59:25.745Z
