Gogs before 0.14.4 Path Equivalence Bypass via NTFS .git Aliases
- State
- Published
- Severity
- 7.7 High
- Published
- Nov 22, 2026
- Updated
- Nov 23, 2026
- Reserved
- Nov 22, 2026
Description
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::$INDEX_ALLOCATION to overwrite .git/config or hooks and execute commands as the Gogs process.
| Product | Versions |
|---|---|
| Gogs Gogs | before 0.14.4 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 7.7 High | VulnCheck | |
| 3.1 | 7.5 High | VulnCheck |
Weaknesses
- CWE-41 Improper Resolution of Path Equivalence
References
- https://github.com/gogs/gogs/pull/8483Issue TrackerPatch
- https://github.com/gogs/gogs/commit/aa7fc903688471724a9565f1258d961e626d3cd0Patch
- https://github.com/gogs/gogs/commit/43017045492c85e201536bfc7af49fa9f74b0069Patch
- Gogs v0.14.4 Release NotesRelease Notes
- https://github.com/gogs/gogs/blob/v0.14.3/internal/database/repo_editor.go#L539-L547Technical Details
- VulnCheck Advisory: Gogs before 0.14.4 Path Equivalence Bypass via NTFS .git AliasesThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.