Argument injection in gogs - CVE-2026-82401

 

Argument injection in gogs - CVE-2026-82401

Published: November 25, 2026


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

Vulnerability details

The vulnerability allows a remote user to create or overwrite files at server paths writable by Gogs, potentially disrupting service.

The vulnerability exists due to argument injection in DiffBinary when Git interprets user-controlled branch names as command options during pull request comparisons. A remote user can supply a crafted branch name to redirect diff output to a server file of their choice.


Affected software

gogs

How to mitigate CVE-2026-82401

Install security update from vendor's website.

gogs - update to 0.14.4

External References

Related Security Bulletins