Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with repo write access
-
DeliveryCraft filename using NTFS alias (git~1 or .git::$INDEX_ALLOCATION)
-
ExploitBypass isRepositoryGitPath .git protection
-
ExecutionOverwrite .git/config or hook script
-
ImpactExecute commands as Gogs process
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path traversal prevention
|
| Exploitation Conditions | Requires a Gogs instance before 0.14.4 running on a Windows host with an NTFS filesystem (Linux/other hosts are not affected). The attacker must be an authenticated user holding write access to a target repository. Exploitation is performed by creating, renaming, or uploading a file whose path component is an NTFS equivalent of .git - specifically the 8.3 short name git~1, a trailing-dot/space form, or an alternate-data-stream form such as .git::$INDEX_ALLOCATION - which bypassed the original isRepositoryGitPath check and allowed writing into .git to overwrite .git/config or hooks. Limiting factors: Windows/NTFS-only, authentication plus repository write privilege required, and the non-default/platform-specific nature of the alias trick (reflected as AC:H/AT:P). Updating to v0.14.4 is the vendor fix. |
| Impact | Signals are moderately high but strongly gated. The CVSS 4.0 base score is 7.7 (High) with VI/VC/VA:H indicating full code execution, yet the vector itself tempers urgency: AV:N but AC:H and AT:P mean exploitation depends on specific, non-default conditions (a Windows/NTFS host and the attacker-driven alias trick), and PR:L confirms an authenticated account with repository write access is required - this is not an anonymous internet-wide attack. No CISA KEV listing is present and no EPSS score is supplied in the input, so widespread automated exploitation cannot be inferred from the data; the absence of EPSS is a genuine data gap rather than a low score. There is no public exploit identified at time of analysis - the only references are vendor patches and the VulnCheck advisory, not working exploit code. The vuln.today Decision label is 'this_week', which is consistent with a serious-but-conditional flaw that warrants prompt patching without being an emergency. Net: a real priority for organizations running Gogs on Windows, but the Windows-only requirement plus authenticated write access materially narrows the exposed population compared with the raw 7.7 number. |
| Exploit ScenarioDerived | On a Windows-hosted Gogs instance, an authenticated user who already has write access to a repository creates, renames, or uploads a file named with an NTFS alias such as git~1 or .git::$INDEX_ALLOCATION. Because isRepositoryGitPath did not recognize these equivalents, the write lands inside the protected .git directory, letting the attacker overwrite .git/config or a hook script to execute arbitrary commands as the Gogs process. No public exploit was identified at time of analysis, though the patch diff and its test cases enumerate the exact bypass strings. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 22, 2026
NTFS path-equivalence bypass in Gogs before 0.14.4 on Windows lets an authenticated user with write access to a repository escape the .git directory protection and overwrite files inside .git - such as .git/config or hooks - with the result that attacker-supplied content can execute commands as the Gogs process. Only instances hosted on Windows with an NTFS filesystem are affected; Linux and other hosts are not, and the attacker must already hold a valid account plus write privilege on the target repository. Updating to v0.14.4 is the vendor fix; no public exploit code was identified at time of analysis, and the platform-specific alias trick and the authentication/write-access prerequisite are what gate exploitation.
RemediationAI
Vendor-released patch: Gogs v0.14.4, available at https://github.com/gogs/gogs/releases/tag/v0.14.4; the fix lands via PR https://github.com/gogs/gogs/pull/8483 with commits aa7fc903688471724a9565f1258d961e626d3cd0 and 43017045492c85e201536bfc7af49fa9f74b0069, and is described in advisory GHSA-hc35-pcqw-5xjq. Updating is the complete fix, since the vulnerability is in Gogs' own path validation rather than in a configurable feature. Where an immediate upgrade is not possible, reduce exposure by restricting repository write access to accounts that are fully trusted, because the bypass requires an authenticated user who can already create, rename or upload files in a repository - the trade-off is reduced collaboration for contributors who only need to propose changes via forks or pull requests. Second, move the instance off Windows/NTFS or host it on a non-NTFS volume, since the affected code path only resolves to .git under NTFS semantics; the trade-off is migration effort and any Windows-specific operational tooling. Note that these are containment steps only and do not close the underlying equivalence gap.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-41 (improper resolution of path equivalence). Gogs screens user-supplied paths with isRepositoryGitPath (internal/database/repo_editor.go) to stop repository editors from writing into the .git directory, and the pre-0.14.3/v0.14.3 check only compared lowercased path components after trimming trailing dots and spaces against the literal string ".git". On NTFS, several distinct names resolve to the same directory: the 8.3 short name "git~1", components with trailing dots or spaces such as ".git." or ".git ", and alternate data stream syntax such as ".git::$INDEX_ALLOCATION". Because those forms did not match the literal comparison, a crafted path component passed the guard while the filesystem still resolved it to .git. The upstream fix replaces the inline comparison with an isDotGit helper modelled on Git's own is_ntfs_dotgit: it lowercases the component, accepts a ".git" or "git~1" prefix, cuts anything from the first colon onward (dropping the ADS portion), and treats the component as .git when the remainder is empty after trimming trailing dots and spaces. The PR's test table adds positive cases such as ".git::$INDEX_ALLOCATION/hooks/pre-commit", "GIT~1", "GIT~1::$INDEX_ALLOCATION/hooks/pre-commit" and "dir/git~1", and negative cases such as ".gitignore::$DATA", "git~10", "git~1x/hooks" and "git~2/hooks". The flaw is reachable over the network by a low-privileged authenticated user, but requires a particular platform and filesystem combination, which is why the assessed vector carries AC:H and AT:P.
Know when Gogs gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Remote via the web upload/rename interface (AV:N) but Windows/NTFS-specific alias handling makes it AC:H; authenticated repository write access is required (PR:L); overwriting hooks yields full RCE as the Gogs process (C/I/A:H, scope unchanged).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Articles & Coverage 1
Executive ViewAI
CVE-2026-134808 is a high-severity vulnerability in Gogs (versions before 0.14.4) on Windows that allows an authenticated user with repository write access to escape the .git directory protection and overwrite critical files, potentially leading to arbitrary command execution as the Gogs process. This affects only Windows-hosted instances using NTFS, and the attacker must already possess a valid account and write privileges. Leadership should prioritize patching because a malicious insider or compromised contributor could leverage this to execute code and compromise the entire Gogs service.
Apply vendor patch. If patching is delayed, restrict repository write access to only essential personnel and monitor .git directories for unexpected changes.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Code execution on Gogs servers is possible through improper symbolic-link handling in the repository file editor's PutCo
Multiple SQL injection vulnerabilities in Gogs (aka Go Git Service) 0.3.1-9 through 0.5.x before 0.5.6.1105 Beta allow r
The git hook feature in Gogs 0.5.5 through 0.12.2 allows for authenticated remote code execution. Rated high severity (C
Gogs through 0.13.0 allows argument injection during the previewing of changes. Rated critical severity (CVSS 9.9), this
The built-in SSH server of Gogs through 0.13.0 allows argument injection in internal/ssh/ssh.go, leading to remote code
Gogs self-hosted Git service v0.13.3 has a command injection vulnerability enabling remote code execution through crafte
Unauthenticated file upload in Gogs self-hosted Git service 0.13.4 and below. Default configuration exposes file upload
OS Command Injection in GitHub repository gogs/gogs prior to 0.12.9. Rated critical severity (CVSS 9.8), this vulnerabil
Gogs 0.11.66 allows remote code execution because it does not properly validate session IDs, as demonstrated by a ".." s
Supply chain attack via LFS object overwrite across repos in Gogs before 0.14.2. PoC and patch available.
Path Traversal in GitHub repository gogs/gogs prior to 0.12.9. Rated critical severity (CVSS 9.1), this vulnerability is
Missing Authorization in GitHub repository gogs/gogs prior to 0.12.5. Rated critical severity (CVSS 9.1), this vulnerabi
EUVD-2026-132855
GHSA-2jh3-23vq-6j44
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB