CVE-2026-66064

goshs has ACL Bypass & Path Traversal

Published Jul 28, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability exists in goshs’s HTTP file handler, which opens files using a cleaned path but authenticates access against the raw request URL path. By sending a request that ends with a trailing slash, an attacker can bypass the .goshs ACL-file protection and block-list checks, allowing the server to serve files that should otherwise be denied. This results in unauthorized file disclosure beyond the intended directory. The weakness maps to CWE‑41 Path Traversal and CWE‑863 Broken Access Control.

Affected Systems

The affected product is goshs from goshs‑labs. Any installation running a version earlier than 2.1.5 is vulnerable; the issue is resolved in release 2.1.5 and later.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity, and the EPSS score of less than 1% suggests a low likelihood of exploitation at the current time. The vulnerability is not listed in CISA’s KEV catalog. The likely attack vector is an unauthenticated HTTP request to the server’s port, where an attacker can freely construct a request with a trailing slash to read files beyond the intended directory. Based on the description, it is inferred that no authentication or privileged conditions are required, making the attack straightforward for anyone who can reach the service over the network.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to version 2.1.5 or newer of goshs to apply the vendor patch that corrects the ACL and path handling logic.
  • If an upgrade cannot be performed immediately, restrict the HTTP service to trusted networks or internal hosts using a firewall or network access control.
  • Verify that the .goshs ACL file is present and correctly configured to limit file access; as a temporary measure, avoid allowing requests that include trailing slashes or silently strip them server‑side.

Generated by OpenCVE AI on August 4, 2026 at 23:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-964w-f6gj-5236 goshs has ACL Bypass & Path Traversal
History
Type Values Removed Values Added
First Time appeared Goshs
Goshs goshs
Vendors & Products Goshs
Goshs goshs
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title goshs has ACL Bypass & Path Traversal
Weaknesses CWE-41
CWE-863
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'}

Weaknesses
  • CWE-41

    Improper Resolution of Path Equivalence

  • CWE-863

    Incorrect Authorization

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 29, 2026, 3:24 PM
Reserved
Jul 23, 2026, 11:25 PM
Status
Deferred
Published
Jul 28, 2026, 11:17 PM
Modified
Oct 23, 2026, 11:10 PM