Skip to main content

Gogs EUVDEUVD-2025-210329

| CVE-2025-64719 MEDIUM
Improper Input Validation (CWE-20)
2026-06-22 https://github.com/gogs/gogs GHSA-3qq3-668m-v9mj
4.9
CVSS 3.1 · Vendor: https://github.com/gogs/gogs
View

Attack ChainAIDerived

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

  1. Recon
    Obtain write access to target Gogs repository or wiki
  2. Delivery
    Create file with incomplete pathspec name (e.g., '"[]') via web UI
  3. Exploit
    File committed to git object store
  4. Install
    Subsequent web requests pass pathspec-invalid name to git-module
  5. C2
    Git returns error; commits[0] dereference panics or error propagates
  6. Execute
    Repository/wiki file listing pages return HTTP 500
  7. Impact
    All web users denied access to affected repo/wiki until CLI remediation

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
Exploitation Conditions

The attacker must be an authenticated Gogs user with write access (contributor or higher) to the target repository or wiki - this corresponds to the CVSS PR:H designation. The DoS is triggered by committing a file whose name contains special characters that form an invalid or incomplete git pathspec pattern, specifically characters such as *, ?, [, and ] arranged in a way that git cannot resolve (e.g., an unclosed bracket sequence like '[]'). The default Gogs file creation UI permits such filenames without restriction. The condition affects only the web interface file listing and wiki index pages of the specific repository or wiki where the malicious file was committed; all other repositories on the same Gogs instance continue to function normally, and CLI access to the affected repository is entirely unaffected. Exploitation is not possible against repositories or wikis where the attacker lacks write permissions. Recovery requires administrative CLI access to remove the offending file - standard web-based deletion is blocked by the same 500 error.

Impact

CVSS 4.9 (Medium) with vector AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H accurately reflects the constrained impact profile. The PR:H requirement means exploitation is limited to authenticated users who already hold write permissions on a repository or wiki - this substantially narrows the attacker pool in private or controlled Gogs installations. However, on public Gogs instances that permit open contributions or fork-and-write workflows, the realistic attacker surface is broader than PR:H alone implies. The availability impact is scoped to the web interface of the specific repository or wiki targeted; CLI access and other repositories are entirely unaffected. No EPSS data is available in the provided intelligence to quantify exploitation probability. KEV status is absent, and no active exploitation has been reported. The existence of a documented PoC with specific payload and screenshots in the public GitHub advisory lowers the bar for any contributor-level bad actor to reproduce the attack trivially. The primary threat model is insider abuse or a malicious contributor on a shared Gogs instance; the persistence of the DoS condition (until manual CLI remediation) amplifies the operational impact relative to the moderate CVSS score.

Exploit ScenarioDerived

An authenticated contributor to a public or shared Gogs instance navigates to a repository or wiki they have write access to and creates a new file named '"[]' (or any name containing an incomplete git bracket expression). Once committed, every web request to that repository's file listing page or wiki page index causes Gogs to pass the pathspec-invalid filename to git, which returns an error; the unguarded code path then returns HTTP 500 to all web visitors of that repository or wiki. The PoC for this scenario, including screenshots and the specific payload, is documented in the public GitHub security advisory GHSA-3qq3-668m-v9mj.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jun 22, 2026

Denial of service in Gogs repository and wiki web interfaces allows any authenticated user with write access to permanently break file listing pages by committing a file whose name contains incomplete git pathspec metacharacters. Affected versions are Gogs <= 0.14.2; the web UI for the targeted repository or wiki returns HTTP 500 on every subsequent page load until an administrator removes the malicious file via CLI. Publicly available exploit code exists as documented in the GHSA-3qq3-668m-v9mj advisory with a specific PoC payload; no active exploitation confirmed (not in CISA KEV).

RemediationAI

Upgrade Gogs to v0.14.3 (https://github.com/gogs/gogs/releases/tag/v0.14.3), which is the vendor-confirmed patched release addressing this vulnerability via PR #8116 (commit ae41bab5f28e4880edcef01c91d2cbb8839ec9e4). The fix passes git.LsTreeOptions{Verbatim: true} to all git listing calls and upgrades the github.com/gogs/git-module dependency to v1.8.6. If immediate upgrade is not feasible, restrict repository and wiki write permissions to fully trusted users only, eliminating the attacker's ability to introduce the malicious filename - note this is a policy control, not a code fix, and trusted insiders can still trigger the condition. As a detection measure, implement a pre-receive git hook that rejects filenames containing unbalanced bracket expressions or other incomplete pathspec metacharacters (*?[]); be aware this may interfere with legitimate filenames containing these characters. If the DoS condition has already been triggered, the only recovery path is CLI-based removal of the offending file followed by a force-push or direct repository manipulation, since the web interface will remain unavailable.

Affected VersionsENISA

gogs < 0.14.3

Affected Packages

go gogs.io/gogs fix: 0.14.3
euvd gogs fix: 0.14.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, 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-20 (Improper Input Validation) in two Go route handlers: internal/route/repo/view.go (line 56) and internal/route/repo/wiki.go (line 174). Both handlers call the github.com/gogs/git-module library to retrieve commit metadata for files in a repository or wiki. Git's pathspec syntax interprets characters such as *, ?, [, and ] as glob patterns rather than literal filename characters. When a filename contains an incomplete bracket expression (e.g., the payload '"[]'), git rejects the pathspec and returns an error instead of commit data. The view.go handler fails to guard against this error, and wiki.go additionally dereferences commits[0] without checking whether the returned slice is non-empty, causing a nil-pointer panic. The fix in v0.14.3 passes git.LsTreeOptions{Verbatim: true} to all Entries() calls across view.go, wiki.go, and the API handlers in contents.go and tree.go, instructing the library to treat filenames as literal strings. The underlying git-module dependency was simultaneously upgraded from v1.8.4 to v1.8.6 to support this flag. Affected package: pkg:go/gogs.io_gogs <= 0.14.2.

Know when the next one hits your stack

  • 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 (https://github.com/gogs/gogs) PRIMARY 4.9 MEDIUM
AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 4.9 MEDIUM

PR:H reflects required authenticated write access; A:H captures persistent web UI breakage; C:N/I:N because only availability is impacted, scoped to the target repository.

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

Primary rating from Vendor (https://github.com/gogs/gogs).

CVSS VectorVendor: https://github.com/gogs/gogs

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionCVE.org

Summary

A malicious user with rights to create a new file on a repository or wiki page can trigger a denial of service condition in which the pages containing the listing of files will return HTTP error 500 and render the web interface unusable for the repository or wiki.

Details

The issue is present in file internal/route/repo/wiki.go and internal/route/repo/view.go where the pages try to recover commit information. If errors are returned while recovering commit information, the page will return a 500 error and stop rendering, resulting in a denial of service. In view.go the issue occurs at line 56 while a slightly different issue occurs in wiki.go at line 174 where commits[0] is dereferenced without checking if it contains value. It is possible to trigger issues in assigning the correct value to variable commits by using a specific string as part of the page title. The issue is linked to the fact that file names can contain special characters such as *, ?, [, ], etc. that will be interpreted as git's pathspec instead of a simple string. So crafting a name containing an incomplete pathspec sequence will trigger this error.

PoC

As a proof of concept consider the file name "[] and how it affects repository and wiki pages. In the following images it is shown how pages are created, the error shown in the web page right after creation and the error as logged in the console.

<img width="835" height="503" alt="repo_creation" src="https://github.com/user-attachments/assets/cdee9625-33d9-42d3-a5fa-264fba4923ed" />

Figure 1: Creation of malicious file in repository

<img width="832" height="692" alt="repo_error_web" src="https://github.com/user-attachments/assets/53c57366-8f45-4a0f-a2ac-86f4a08467cc" />

Figure 2: Malicious file in repository causes error 500

<img width="934" height="56" alt="repo_error_console" src="https://github.com/user-attachments/assets/26427fc3-bead-4e41-a484-e2d53289a2da" />

Figure 3: Console error caused by malicious file in repository

<img width="835" height="503" alt="wiki_creation" src="https://github.com/user-attachments/assets/7a5c9836-64e3-4824-b6e5-9f9a80e7f18a" />

Figure 4: Creation of malicious file in wiki

<img width="1001" height="463" alt="wiki_error_web" src="https://github.com/user-attachments/assets/33c5a907-b81c-4157-bd37-33341412172a" />

Figure 5: Malicious file in wiki causes error 500

<img width="1018" height="537" alt="wiki_error_console" src="https://github.com/user-attachments/assets/9b0ab551-5720-4715-a2ac-f7310534f025" />

Figure 6: Console error caused by malicious file in wiki

Impact

The repository and wiki pages will not render when files named with the payload are present in the repository or in the wiki. This condition will be present as long as the malicious file is present in the repository or wiki. The issue will not cause a DoS condition when using the server via CLI.

Threat Intelligence Overview

EPSS Score
0.4%
Top 65% exploitable
Prevalence
Medium
self-hosted Git service, popular in smaller teams/orgs
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

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

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected

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