Skip to main content

goshs CVE-2026-66063

| EUVDEUVD-2026-50082 MEDIUM
Path Traversal (CWE-22)
2026-07-28 GitHub_M GHSA-wg2q-39h6-66x9
6.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Send crafted multipart upload
  2. Exploit
    Path traversal in filename parsing
  3. Execution
    Write file outside webroot
  4. Impact
    Overwrite or plant arbitrary content

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

No special conditions - remote unauthenticated exploitation against the default configuration of goshs that enables the upload handler. The vulnerability requires only that the server accepts multipart uploads, which is enabled by default. The attack is not limited to any specific platform or deployment mode.

Impact

CVSS v3.1 base score 6.5 (Medium) reflects a network-accessible, low-complexity, unauthenticated attack with low confidentiality and integrity impact. No EPSS data or KEV listing is available, suggesting exploitation is not widespread. The researcher provided a proof-of-concept and the attack is automatable, but the product's niche deployment (red teamers/developers) limits real-world risk. The older v1 branch without a patch introduces a persistent risk for users who cannot upgrade.

Exploit ScenarioDerived

An attacker sends a POST request to the goshs upload endpoint with a multipart file part whose filename is set to '..'. The server creates a file containing attacker-controlled content in the parent directory of the webroot with a trailing marker character (e.g., '~'), potentially overwriting configuration or planting malicious files. Proof-of-concept code exists as the researcher reproduced the issue.

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

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

Alert me

AnalysisAIv1 – Jul 28, 2026

Path traversal in goshs file server allows unauthenticated remote attackers to write files outside the served directory by uploading a file with the name '..'. Affects versions up to 2.1.4; fixed in 2.1.5. The older v1 branch (<=1.1.4) remains vulnerable with no patch. No active exploitation has been reported.

RemediationAI

Upgrade goshs v2 to version 2.1.5 or later, which includes the fix from commit f3ef599e409151d1380866e47de8b1afb0bb54fa. For goshs v1 (<=1.1.4), no patch is available; migrate to v2 if possible. If migration is not feasible, disable the upload endpoint (e.g., remove or restrict access to the /upload route) or enforce network-level access controls to limit upload functionality to trusted users only. Note that disabling uploads may break intended use cases.

Affected VersionsENISA

goshs < 2.1.5

Affected Packages

go github.com/patrickhener/goshs no fix
go github.com/patrickhener/goshs/v2 fix: 2.1.5-0.20260727065949-f3ef599e4091
go goshs.de/goshs no fix
go goshs.de/goshs/v2 fix: 2.1.5-0.20260727065949-f3ef599e4091
euvd goshs fix: 2.1.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 5 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 multipart upload handler in updown.go splits the Part.FileName() on '/' to remove directory components but does not reject '..', so filepath.Join with '..' creates a file in the parent directory outside the webroot. The root cause is a path traversal (CWE-22). The CPE cpe:2.3:a:goshs-labs:goshs:*:*:*:*:*:*:*:* indicates all versions of goshs are potentially affected, but the advisory specifically identifies v2 up to 2.1.4 and v1 up to 1.1.4 as vulnerable.

Know when Goshs 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 (GitHub_M) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
vuln.today AI 6.5 MEDIUM

Network attack, no auth needed, low complexity; limited write impact.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

1
Patch available
Jul 28, 2026 - 23:02 EUVD

DescriptionCVE.org

goshs is a feature-rich single-binary file server for red teamers and developers. Prior to 2.1.5, the httpserver/updown.go multipart upload handler split part.FileName() on / but did not reject .., allowing an unauthenticated upload with filename .. to create a file outside the served tree. This issue is fixed in version 2.1.5.

Threat Intelligence Overview

EPSS Score
0.2%
Top 86% exploitable
Prevalence
Low
niche red team tool
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

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 Yes
EPSS 0.2%
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
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Vendor StatusVendor

SUSE

Severity: Moderate

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