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

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.

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

Remediation

No vendor fix or workaround currently provided.

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

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 14: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/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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-29T14:10:09.074Z

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

Link: CVE-2026-66063

cve-icon Vulnrichment

Updated: 2026-07-29T14:09:25.601Z

cve-icon NVD

Status : Deferred

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

Modified: 2026-07-30T19:23:14.707

Link: CVE-2026-66063

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T14:15:05Z

Weaknesses
  • CWE-22

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