Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend HTTP GET with trailing slash on blocked path
-
DeliveryCleaned path opens real file
-
ExploitDerived filename becomes empty string
-
ExecutionBlock-list check passes (empty not in list)
-
PersistACL file protection skipped
-
ImpactServer 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Attack vector is network, no privileges, no user interaction; impact only low confidentiality.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.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
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.
Critical authorization bypass in goshs (Go-based HTTP server) versions prior to 2.0.0-beta.4 allows unauthenticated atta
Improper enforcement of the `--no-delete` flag in goshs WebDAV server allows unauthorized file deletion or overwrite. Th
Path traversal in goshs file server allows unauthenticated remote attackers to write files outside the served directory
Remote unauthenticated attackers can leak GitHub workflow tokens from goshs repositories via ArtiPACKED attack. The vuln
Path traversal in patrickhener goshs SFTP rename operation enables authenticated attackers to write files outside the co
goshs SimpleHTTPServer versions prior to 2.0.2 allow arbitrary file write via cross-origin PUT requests due to missing C
EUVD-2026-50083
GHSA-964w-f6gj-5236
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB