Skip to main content

goshs CVE-2026-66064

| EUVDEUVD-2026-50083 MEDIUM
Improper Resolution of Path Equivalence (CWE-41)
2026-07-28 GitHub_M GHSA-964w-f6gj-5236
5.3
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Send HTTP GET with trailing slash on blocked path
  2. Delivery
    Cleaned path opens real file
  3. Exploit
    Derived filename becomes empty string
  4. Execution
    Block-list check passes (empty not in list)
  5. Persist
    ACL file protection skipped
  6. Impact
    Server returns file contents (confidentiality breach)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path traversal prevention
Exploitation Conditions

The vulnerability is exploitable against goshs servers configured with a block list in the .goshs ACL file and where the requested file is not also protected by authentication. The attack does not require authentication (CVSS PR:N) but only bypasses the block list and the hidden-file rule; authentication-protected directories still return 401. No user interaction is required. The server must be using the sendFile handler (the default for GET requests).

Impact

The CVSS 3.1 base score is 5.3 (Medium) with vector AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N, indicating remote, unauthenticated exploitation with low complexity. The EPSS score is not provided, and the vulnerability is not listed in CISA's Known Exploited Vulnerabilities. While the CVSS vector suggests high exploitability, the actual impact is limited: only block-list-protected files and the .goshs ACL file (which may contain bcrypt hashes) are exposed; authentication-protected directories remain secure. The SSVC decision framework would likely consider exploitation as 'Poised' given the patch and public advisory, but the technical impact is low (only confidentiality of non-authenticated resources). Without EPSS or KEV data, the real-world risk is moderate-this is a real but targeted bypass that reduces the protection of block-list-only configurations.

Exploit ScenarioDerived

An attacker sends a GET request to a goshs server for a blocked file, appending a trailing slash, e.g., GET /blocked/secret.txt/. The server opens the real file but checks an empty string against the block list, allowing the file to be served. If the target is the ACL configuration file itself, the attacker obtains its bcrypt password hash. Proof-of-concept code is included in the security_test.go file of the patch commit, confirming the bypass is reproducible.

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

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

Alert me

AnalysisAIv1 – Jul 28, 2026

A path equivalence bypass in goshs lets attackers retrieve blocked files and the ACL configuration file by appending a trailing slash to the request path. The sendFile handler derives the authorization-check filename from the raw URL while opening the file from the cleaned path, so a trailing slash yields an empty string for the check and defeats the block list and the rule that hides the .goshs file. No public exploit has been identified, but a proof-of-concept test is included in the patch; the vulnerability is not currently in CISA's Known Exploited Vulnerabilities catalog.

RemediationAI

Upgrade to goshs version 2.1.5, which contains the fix. The commit f3ef599e409151d1380866e47de8b1afb0bb54fa modifies sendFile to derive the served filename from the opened file's Stat() call rather than from the raw request path, eliminating the inconsistency. For servers on the v1 branch (1.1.4 and earlier) no patch is available; users should upgrade to the v2 line and then to 2.1.5 as the vendor no longer supports v1. As a workaround, if authentication is available, protect sensitive directories with authentication rather than relying solely on the block list, as authentication is not bypassed by this vulnerability. Another compensating control is to use a reverse proxy that strips trailing slashes before forwarding requests to goshs, though this may alter expected behavior for directory listing.

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 vulnerability lies in the sendFile handler within httpserver/handler.go. The Go standard library's filepath.Clean is correctly applied when opening the file, but the filename used for access-control decisions (block list and ACL-file protection) is taken from the raw req.URL.Path by splitting on '/' and taking the last segment. Because filepath.Clean strips trailing slashes, a request like '/blocked/secret.txt/' opens the real file but produces an empty derived name. The CWE-41 classification (Improper Resolution of Path Equivalence) captures this discrepancy between the path used for authorization and the path used for file access. CPE data shows the affected product is goshs-labs:goshs, with the fix incorporated in version 2.1.5.

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 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
vuln.today AI 5.3 MEDIUM

Attack vector is network, no privileges, no user interaction; impact only low confidentiality.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/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
None
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/handler.go sendFile handler opened files using a cleaned path but derived the authorization filename from raw req.URL.Path, so a trailing slash could bypass .goshs ACL-file protection and block-list checks. This issue is fixed in version 2.1.5.

Threat Intelligence Overview

EPSS Score
0.3%
Top 77% exploitable
Prevalence
Low
niche red team/developer file server tool
Threat Intel
1
1 source
Social Media
2
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL 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 No
EPSS 0.3%
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

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
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.

Vendor StatusVendor

SUSE

Severity: Moderate

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