CVE-2026-66063

goshs has a Path Traversal issue

Published Jul 28, 2026 CVSS 3.1 · 6.5 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/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.

Analysis

AI-generated

Technical impact

This vulnerability allows an adversary to upload a file with a crafted filename of ".." via the multipart upload handler, enabling creation of arbitrary files outside the intended serve directory. The flaw resides in the server’s handling of the filename component, making it possible to place files in locations such as configuration directories or system folders. By doing so, an attacker could overwrite critical system files, drop malicious payloads, or otherwise compromise the operating system’s integrity.

Affected Systems

The affected product is the goshs file server from goshs-labs, prior to version 2.1.5. All installations of goshs older than 2.1.5 that expose the multipart upload endpoint are vulnerable; newer releases have applied the path‑traversal guard.

Risk and Exploitability

The CVSS score of 6.5 indicates moderate severity, while the EPSS score of less than 1% suggests a low probability of exploitation at present. The vulnerability is not listed in CISA’s KEV catalog. The attack vector is straightforward: an unauthenticated user sends an HTTP multipart upload with a filename containing the ".." sequence, resulting in a path traversal. No special privileges are required, making the flaw accessible to any external actor able to reach the upload endpoint.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade goshs to version 2.1.5 or later, where the path‑traversal check has been added.
  • If an upgrade is not immediately feasible, disable or remove the multipart upload feature or enforce authentication to prevent unauthenticated file uploads.
  • Restrict the upload directory to a protected location and configure the server to reject filenames containing path traversal characters, ensuring uploaded files cannot escape the intended tree.
  • Deploy network controls, such as firewalls or segment isolation, to limit external exposure of the goshs service to trusted hosts only.

Generated by OpenCVE AI on August 3, 2026 at 14:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-wg2q-39h6-66x9 goshs has a Path Traversal issue
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/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.
Title goshs has a Path Traversal issue
Weaknesses CWE-22
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

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