CVE-2026-52806: Vulnerability in gogs.io/gogs

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

Go, CWE-77

Exploitation
None confirmed
Severity
9.9 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-qf6p-p7ww-cwr9
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Weakness
CWE-77
Published
23 Jun 2026
Last change
21 Jul 2026
Ecosystem
Go

Affected packages

Vulnerable version ranges and fixed releases

  • gogs.io/gogs Go, Affected before 0.14.3. Fixed in 0.14.3

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes