CVE-2026-52806
CRITICAL
9.9
CVSS 3.1
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.
Metadata
Severity & Metrics
9.9
CRITICAL CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Affected products (1)
| Vendor | Product | Platform | Versions |
|---|---|---|---|
| gogs | gogs | — | < 0.14.3 |
Weakness (CWE)
| CWE | Source | Description |
|---|---|---|
| CWE-77 | cna | CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') |
CVSS scores (1)
| Score | Severity | Version | Source | Vector |
|---|---|---|---|---|
| 9.9 | CRITICAL | 3.1 | cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
References (4)
- https://github.com/gogs/gogs/security/advisories/GHSA-qf6p-p7ww-cwr9 https://github.com/gogs/gogs/security/advisories/GHSA-qf6p-p7ww-cwr9
- https://github.com/gogs/gogs/pull/8301 https://github.com/gogs/gogs/pull/8301
- https://github.com/gogs/gogs/commit/a9dbafbfd8e1020bacc626420238c01d75d03364 https://github.com/gogs/gogs/commit/a9dbafbfd8e1020bacc626420238c01d75d03364
- https://github.com/gogs/gogs/releases/tag/v0.14.3 https://github.com/gogs/gogs/releases/tag/v0.14.3