CVE-2026-134808: Gogs before 0.14.4 Path Equivalence Bypass via NTFS .git Aliases
Gogs before 0.14.4 on Windows contains a path equivalence vulnerability in isRepositoryGitPath that allows authenticated users with write access to bypass .git directory protection using NTFS aliases. Attackers can create, rename or upload files via aliases like git~1 or .git::$INDEXALLOCATION to overwrite .git/config or hooks and execute commands as the Gogs process.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 0.14.4