Incorrect Behavior Order: Validate Before Canonicalize in gogs - #VU170285

 

Incorrect Behavior Order: Validate Before Canonicalize in gogs - #VU170285

Published: November 25, 2026


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

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on a Windows-hosted Gogs instance.

The vulnerability exists due to path validation before Windows path normalization in isRepositoryGitPath when processing repository file writes. A remote attacker can use repository write access through the web editor or repository contents API to modify protected Git configuration and thereby execute arbitrary code.


Affected software

gogs

Remediation

Install security update from vendor's website.

gogs - update to 0.14.4

External References