Skip to main content

Gogs CVE-2026-134808

| EUVDEUVD-2026-132855 HIGH
Improper Resolution of Path Equivalence (CWE-41)
2026-11-22 VulnCheck GHSA-2jh3-23vq-6j44
7.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with repo write access
  2. Delivery
    Craft filename using NTFS alias (git~1 or .git::$INDEX_ALLOCATION)
  3. Exploit
    Bypass isRepositoryGitPath .git protection
  4. Execution
    Overwrite .git/config or hook script
  5. Impact
    Execute 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.9% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

gogs 0 <0.14.4

Affected Packages

euvd gogs fix: 0.14.4

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

Vendor (VulnCheck) PRIMARY 7.7 HIGH
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
vuln.today AI 7.5 HIGH

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).

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.9%
Top 40% exploitable
Prevalence
Low
niche self-hosted Git service; Windows/NTFS deployments uncommon versus Linux
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.9%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

More in Gogs

View all
CVE-2025-8110 HIGH POC
8.7 Dec 10

Code execution on Gogs servers is possible through improper symbolic-link handling in the repository file editor's PutCo

CVE-2014-8682 HIGH POC
7.5 Nov 21

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

CVE-2020-15867 HIGH POC
7.2 Oct 16

The git hook feature in Gogs 0.5.5 through 0.12.2 allows for authenticated remote code execution. Rated high severity (C

CVE-2024-39932 CRITICAL POC
9.9 Jul 04

Gogs through 0.13.0 allows argument injection during the previewing of changes. Rated critical severity (CVSS 9.9), this

CVE-2024-39930 CRITICAL POC
9.9 Jul 04

The built-in SSH server of Gogs through 0.13.0 allows argument injection in internal/ssh/ssh.go, leading to remote code

CVE-2025-64111 CRITICAL POC
9.8 Feb 06

Gogs self-hosted Git service v0.13.3 has a command injection vulnerability enabling remote code execution through crafte

CVE-2026-25242 CRITICAL POC
9.8 Feb 19

Unauthenticated file upload in Gogs self-hosted Git service 0.13.4 and below. Default configuration exposes file upload

CVE-2022-1986 CRITICAL POC
9.8 Jun 09

OS Command Injection in GitHub repository gogs/gogs prior to 0.12.9. Rated critical severity (CVSS 9.8), this vulnerabil

CVE-2018-18925 CRITICAL POC
9.8 Nov 04

Gogs 0.11.66 allows remote code execution because it does not properly validate session IDs, as demonstrated by a ".." s

CVE-2026-25921 CRITICAL POC
9.3 Mar 05

Supply chain attack via LFS object overwrite across repos in Gogs before 0.14.2. PoC and patch available.

CVE-2022-1992 CRITICAL POC
9.1 Jun 09

Path Traversal in GitHub repository gogs/gogs prior to 0.12.9. Rated critical severity (CVSS 9.1), this vulnerability is

CVE-2022-0871 CRITICAL POC
9.1 Mar 11

Missing Authorization in GitHub repository gogs/gogs prior to 0.12.5. Rated critical severity (CVSS 9.1), this vulnerabi

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy