PT-2026-51624 · Gogs · Gogs
CVE-2026-52806
·
Published
2026-06-07
·
Updated
2026-07-30
CVSS v3.1
9.9
Critical
| Vector | AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Gogs versions prior to 0.14.3
Description
Authenticated users can achieve Remote Code Execution (RCE) on the server during the "Rebase before merging" operation. The issue stems from improper argument handling when the software invokes the
git rebase command using a pull request's base branch name without a "--" separator. This allows a specially crafted branch name to be parsed as a command flag, such as the --exec flag, leading to arbitrary command execution as the Gogs process user. Successful exploitation can result in full server compromise, exposure of credentials on shared instances, and unauthorized access to cross-tenant repositories.Recommendations
Update to version 0.14.3.
Exploit
Fix
RCE
Command Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Gogs