---
title: "CVE-2026-52806: Gogs vulnerable to RCE via git rebase --exec argument injection in pull request merge"
url: https://erroneo.us/security/cve/CVE-2026-52806/
description: "CVE-2026-52806 (gogs.io/gogs (Go)): Gogs is an open source self-hosted Git service. Prior to 0.14.3, Gogs allows authenticated users to achieve Remote Code…"
type: vulnerability-record
section: "Security Digest"
date_published: 2026-06-24
date_modified: 2026-07-21
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2026-52806"
kev: false
cvss: 9.9
epss: 0.07934
license: All rights reserved. Quote with attribution and a link.
---

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

**Signal:** Critical, preconditions apply. Severe if exploited, but exploitation needs conditions that may not apply to you. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 7.9% , percentile 95: FIRST’s model estimates a 7.9% chance of exploitation activity in the next 30 days, higher than 95% of all scored CVEs (elevated). EPSS is a probability, not a verdict.
- Needs an account (low (any account)). Exposure depends on who can log in.
- Only applies if your dependency tree includes gogs.io/gogs (Go) < 0.14.3, fixed in 0.14.3 . Check your lockfile, including transitive dependencies.

## What it is

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

- Go `gogs.io/gogs` < 0.14.3 → fixed: 0.14.3

## Affected products (CVE record)

- gogs gogs: < 0.14.3

## Severity

- GitHub_M CVSS 3.1: 9.9 `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 `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable no , technical impact total .
- FIRST EPSS (model of 2026-10-21): 7.93% probability of exploitation activity in the next 30 days; percentile 95.

## Sources

- [GitHub Advisory GHSA-qf6p-p7ww-cwr9](https://github.com/advisories/GHSA-qf6p-p7ww-cwr9)
- [CVE.org record CVE-2026-52806](https://www.cve.org/CVERecord?id=CVE-2026-52806)
- [NVD entry CVE-2026-52806](https://nvd.nist.gov/vuln/detail/CVE-2026-52806)
- [github.com](https://github.com/gogs/gogs/security/advisories/GHSA-qf6p-p7ww-cwr9)
- [github.com](https://github.com/gogs/gogs/pull/8301)
- [github.com](https://github.com/gogs/gogs/commit/a9dbafbfd8e1020bacc626420238c01d75d03364)
- [github.com](https://github.com/gogs/gogs/releases/tag/v0.14.3)

---
Source page: https://erroneo.us/security/cve/CVE-2026-52806/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
