Improper Neutralization of Argument Delimiters in a Command in gogs - #VU132782

 

Improper Neutralization of Argument Delimiters in a Command in gogs - #VU132782

Published: May 29, 2026


Vulnerability identifier: #VU132782
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-88
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to execute arbitrary code.

The vulnerability exists due to argument injection in the Merge() function in internal/database/pull.go when processing a pull request with a malicious branch name during the "Rebase before merging" operation. A remote user can create a pull request with a specially crafted branch name to execute arbitrary code.

Exploitation requires rebase merging to be enabled on the target repository and does not require interaction from other users.


Affected software

gogs

Remediation

Cybersecurity Help is currently unaware of any official solution to address this vulnerability.


External References

Related Security Bulletins