CVE-2026-134808 is a high-severity (CVSS 7.5) CWE-41 vulnerability in Gogs Gogs. A fix is available — see the affected versions and patch details below.
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…
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.
Affected Products
GogsGogsDetection & mitigation playbook
Vendor / applianceDetect
Inventory every Gogs Gogs deployment and check each version against the affected-products list above.
Fix
Apply the Gogs Gogs security patch or hotfix for CVE-2026-134808 on the affected version, following the vendor advisory for your exact build.
Workarounds
Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service. Alongside that, restrict the management interface to trusted networks and apply the vendor's recommended configuration mitigations.
Frequently Asked Questions
Is CVE-2026-134808 being exploited in your environment?
Detect and block the exploit chain at execution, on systems you cannot patch yet.