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.
Published: 2026-07-28
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Thu, 30 Jul 2026 15:45:00 +0000

Type Values Removed Values Added
First Time appeared Goshs
Goshs goshs
Vendors & Products Goshs
Goshs goshs

Wed, 29 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 28 Jul 2026 22:30:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-29T15:24:11.484Z

Reserved: 2026-07-23T23:25:28.897Z

Link: CVE-2026-66064

cve-icon Vulnrichment

Updated: 2026-07-29T14:44:34.650Z

cve-icon NVD

Status : Deferred

Published: 2026-07-28T23:17:10.490

Modified: 2026-07-30T19:19:45.637

Link: CVE-2026-66064

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T23:30:15Z

Weaknesses
  • CWE-41

    Improper Resolution of Path Equivalence

  • CWE-863

    Incorrect Authorization