Improper Resolution of Path Equivalence in gogs - #VU170295

 

Improper Resolution of Path Equivalence in gogs - #VU170295

Published: November 25, 2026


Vulnerability identifier: #VU170295
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-41
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to execute arbitrary code as the Gogs service account on Windows hosts using NTFS.

The vulnerability exists due to improper resolution of path equivalence in the Gogs web editor's isRepositoryGitPath guard when NTFS alternate data stream syntax or short-name aliases refer to the protected Git metadata directory. A remote user can abuse repository write access through the web editor to execute arbitrary code via server-side Git hooks.


Affected software

gogs

Remediation

Install security update from vendor's website.

gogs - update to 0.14.4

External References

Related Security Bulletins