Path equivalence bypass in Gogs lets users overwrite .git files
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
Gogs before 0.14.4 on Windows contains a path equivalence flaw in isRepositoryGitPath that lets authenticated users with write access bypass .git directory protection (CWE-41). Such a user can use NTFS aliases such as git~1 to overwrite .git/config or hooks and execute commands as the Gogs process.
Written with Claude Haiku 5.5 from the sources below · 2026-11-23
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade Gogs to version 0.14.4.
Written with Claude Haiku 5.5 from the sources below · 2026-11-23
- Fix · CNA Gogs (Gogs) Fixed in 0.14.4
Timeline
- 2026-11-22 Threatist record created from CVE-2026-134808
- 2026-11-23 Alias added: GHSA-2jh3-23vq-6j44
- 2026-11-23 CISA SSVC decision points changed
- 2026-11-25 EPSS moved to the below the 50th percentile
References
Patch 3
More Gogs vulnerabilities
- TI-2025-07419 Symlink flaw in Gogs PutContents API lets attackers overwrite files KEVCVSS 4.0HIGH 8.7
- TI-2026-37922 Gogs: Path Traversal in organization name results in RCE through Git hooks CVSS 3.1CRITICAL 10.0
- TI-2022-01876 OS Command Injection in gogs/gogs CVSS 3.1CRITICAL 9.8
- TI-2022-01744 Remote Command Execution in gogs/gogs CVSS 3.1CRITICAL 10.0
- TI-2025-39562 Gogs's update .git/config file allows remote command execution CVSS 4.0CRITICAL 9.3
- TI-2026-20951 Gogs: Cross-repository LFS object overwrite via missing content hash verification CVSS 3.1CRITICAL 9.3
Sources
- CVE-2026-134808 · CVE Program
- CVE-2026-134808 · NVD
- FIRST EPSS
- GHSA-2jh3-23vq-6j44 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences