PT-2026-51624 · Gogs · Gogs

CVE-2026-52806

·

Published

2026-06-07

·

Updated

2026-07-30

CVSS v3.1

9.9

Critical

VectorAV: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

BDU:2026-09386
CVE-2026-52806
GHSA-QF6P-P7WW-CWR9
GO-2026-5580
OPENSUSE-SU-2026:21483-1

Affected Products

Gogs