Read the docs

Path equivalence bypass in Gogs lets users overwrite .git files

Priority LOW 37CWE-41Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00636 45th percentileScored 2026-11-30
Fix Fixed Gogs (Gogs): 0.14.4

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

VendorProductAffected versionsFixed inStatusSource
GogsGogsbefore 0.14.40.14.4Patch availableCNA
  • Gogs VendorGogs Affected before 0.14.4 Fixed in 0.14.4 Patch available CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:*——Gogs
  • cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:* Versions — — ·Gogs

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

  1. 2026-11-22 Threatist record created from CVE-2026-134808
  2. 2026-11-23 Alias added: GHSA-2jh3-23vq-6j44
  3. 2026-11-23 CISA SSVC decision points changed
  4. 2026-11-25 EPSS moved to the below the 50th percentile

References

  • 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
See all 79 →

Sources