Description
goshs is a feature-rich single-binary file server for red teamers and developers. From 2.1.3 until 2.1.4, the sftpserver/sftpserver.go password handler used Username != "" && Password != "", so running goshs with -b 'admin:' -sftp and no -fkf left both SFTP authentication handlers unset and allowed unauthenticated file access. This issue is fixed in version 2.1.4.
Published: 2026-07-28
Score: 9.1 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

goshs is a lightweight file server used by red teamers and developers. In versions 2.1.3 up to but not including 2.1.4, the SFTP authentication logic incorrectly checks that both the username and password are non‑empty, using Username != "" && Password != "". When the server is launched with the flags -b 'admin:' and -sftp without specifying a known‑answer password file (-fkf), this check allows a client that supplies an empty password to authenticate successfully as the user admin. The result is unauthenticated file access through the SFTP protocol, enabling an attacker to read, write or delete any files the server exposes. This bypass is a classic authentication flaw (CWE‑306).

Affected Systems

The vulnerability affects the goshs file server distributed by goshs‑labs under the product name goshs. All installations that use the 2.1.3 series before the 2.1.4 release are vulnerable. The fix was integrated into release v2.1.4 and later.

Risk and Exploitability

The score of 9.1 on the CVSS base metric classifies this flaw as Critical. The estimated EPSS of less than 1 % indicates that exploitation is unlikely in the near term, and the vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities catalog. Based on the description, it is inferred that an attacker can exploit the flaw by launching goshs with the specific command‑line arguments that trigger the bypass, or by remotely connecting to an SFTP service that has been configured with these parameters. The vulnerability provides local or remote unauthenticated access depending on how the server is exposed, so any network connected to the SFTP endpoint is at risk if the service remains enabled.

Generated by OpenCVE AI on August 4, 2026 at 12:46 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the goshs binary to version 2.1.4 or later, which contains the authentication fix.
  • If an upgrade cannot be performed immediately, disable SFTP service or remove the -b 'admin:' and -sftp flags until a patched binary is available.
  • Add network‑level controls to restrict SFTP access to trusted hosts only, preventing unauthenticated clients from connecting.

Generated by OpenCVE AI on August 4, 2026 at 12:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-rjrw-mjq6-hpmm goshs SFTP authentication bypass via empty password (incomplete fix of CVE-2026-40884)
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': 'poc', 'Technical Impact': 'total'}, '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. From 2.1.3 until 2.1.4, the sftpserver/sftpserver.go password handler used Username != "" && Password != "", so running goshs with -b 'admin:' -sftp and no -fkf left both SFTP authentication handlers unset and allowed unauthenticated file access. This issue is fixed in version 2.1.4.
Title goshs SFTP authentication bypass via empty password (incomplete fix of CVE-2026-40884)
Weaknesses CWE-306
References
Metrics cvssV3_1

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


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-29T13:25:38.846Z

Reserved: 2026-07-13T19:27:58.315Z

Link: CVE-2026-62325

cve-icon Vulnrichment

Updated: 2026-07-29T13:22:04.026Z

cve-icon NVD

Status : Deferred

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

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

Link: CVE-2026-62325

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T13:00:11Z

Weaknesses
  • CWE-306

    Missing Authentication for Critical Function