← News

Gogs: Authenticated users can bypass .git protection

HighAI-generated2026-11-23

CVE
CVE-2026-134808
Severity
High (CVSS 7.5)
Attack conditions
Remotely, over the network · A regular user account is needed · No user action needed
Exploitation probability (EPSS)
0.6% (within 30 days; FIRST EPSS, 27 November 2026)

Summary

Gogs versions prior to 0.14.4 on Windows allow authenticated users with write rights to bypass .git directory safeguards and modify repository files.

Details

According to the NVD record, Gogs releases before version 0.14.4 on Windows contain a path equivalence flaw in the isRepositoryGitPath function. The issue lets users with write access exploit NTFS alias names.

An attacker can create, rename or upload files using aliases such as git~1 or .git::$INDEX_ALLOCATION. This can overwrite critical files like .git/config or hook scripts, enabling the execution of arbitrary commands with the privileges of the Gogs service.

What to do

The source record does not name a specific patch, fixed version or workaround. General measures:

  • Follow the vendor's security advisories.
  • Apply the update when it is released.
  • Limit access to the product as much as possible, especially from the internet.

Sources

Timeline

  • 22 November 2026 NVD record published
  • 23 November 2026 This article was written