Incorrect Behavior Order: Validate Before Canonicalize in gogs - #VU170285
Published: November 25, 2026
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.