Read the docs
TI-2026-29540 Aliases CVE-2026-40884GHSA-c29w-qq4m-2gcv

goshs: Empty-username SFTP password authentication bypass in goshs

Priority HIGH 82CWE-306Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Security bypass
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-306.

Summary

goshs is a SimpleHTTPServer written in Go. Prior to 2.0.0-beta.6, goshs contains an SFTP authentication bypass when the documented empty-username basic-auth syntax is used. If the server is started with -b ':pass' together with -sftp, goshs accepts that configuration but does not install any SFTP password handler. As a result, an unauthenticated network attacker can connect to the SFTP service and access files without a password. This vulnerability is fixed in 2.0.0-beta.6.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00478 41st percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed goshs (patrickhener): 2.0.0-beta.6github.com/patrickhener/goshs/v2 (Go): 2.0.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
patrickhenergoshsbefore 2.0.0-beta.62.0.0-beta.6Patch availableCNA
—github.com/patrickhener/goshs (Go)up to 1.1.4—No fix listedGHSA-c29w-qq4m-2gcv
—github.com/patrickhener/goshs/v2 (Go)before 2.0.02.0.0Patch availableGHSA-c29w-qq4m-2gcv
  • goshs Vendorpatrickhener Affected before 2.0.0-beta.6 Fixed in 2.0.0-beta.6 Patch available CNA
  • github.com/patrickhener/goshs (Go) Vendor— Affected up to 1.1.4 Fixed in — No fix listed GHSA-c29w-qq4m-2gcv
  • github.com/patrickhener/goshs/v2 (Go) Vendor— Affected before 2.0.0 Fixed in 2.0.0 Patch available GHSA-c29w-qq4m-2gcv

CPE configurations NVD · 6

CPEVersionsRoleVendor
cpe:2.3:a:goshs:goshs:*:*:*:*:*:go:*:*before 2.0.0Vulnerablepatrickhener
cpe:2.3:a:goshs:goshs:2.0.0:beta1:*:*:*:go:*:*2.0.0 beta1Vulnerablepatrickhener
cpe:2.3:a:goshs:goshs:2.0.0:beta2:*:*:*:go:*:*2.0.0 beta2Vulnerablepatrickhener
cpe:2.3:a:goshs:goshs:2.0.0:beta3:*:*:*:go:*:*2.0.0 beta3Vulnerablepatrickhener
cpe:2.3:a:goshs:goshs:2.0.0:beta4:*:*:*:go:*:*2.0.0 beta4Vulnerablepatrickhener
cpe:2.3:a:goshs:goshs:2.0.0:beta5:*:*:*:go:*:*2.0.0 beta5Vulnerablepatrickhener
  • cpe:2.3:a:goshs:goshs:*:*:*:*:*:go:*:* Versions before 2.0.0 Vulnerable ·patrickhener
  • cpe:2.3:a:goshs:goshs:2.0.0:beta1:*:*:*:go:*:* Versions 2.0.0 beta1 Vulnerable ·patrickhener
  • cpe:2.3:a:goshs:goshs:2.0.0:beta2:*:*:*:go:*:* Versions 2.0.0 beta2 Vulnerable ·patrickhener
  • cpe:2.3:a:goshs:goshs:2.0.0:beta3:*:*:*:go:*:* Versions 2.0.0 beta3 Vulnerable ·patrickhener
  • cpe:2.3:a:goshs:goshs:2.0.0:beta4:*:*:*:go:*:* Versions 2.0.0 beta4 Vulnerable ·patrickhener
  • cpe:2.3:a:goshs:goshs:2.0.0:beta5:*:*:*:go:*:* Versions 2.0.0 beta5 Vulnerable ·patrickhener

Remediation

  • Fix · CNA goshs (patrickhener) Fixed in 2.0.0-beta.6
  • Fix · GHSA-c29w-qq4m-2gcv github.com/patrickhener/goshs/v2 (Go) Fixed in 2.0.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-40884
  2. 2026-10-03 Alias added: GHSA-c29w-qq4m-2gcv
  3. 2026-10-20 EPSS moved to the 50th–90th percentile
  4. 2026-10-25 EPSS moved to the below the 50th percentile

References

  • TI-2026-27601 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in goshs CVSS 3.0CRITICAL 9.8
  • TI-2026-27529 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in goshs POST multipart upload CVSS 3.0CRITICAL 9.8
  • TI-2026-27528 goshs has an Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in goshs PUT Upload CVSS 3.0CRITICAL 9.8
  • TI-2026-29003 goshs has a file-based ACL authorization bypass in goshs state-changing routes CVSS 4.0CRITICAL 9.3
  • TI-2026-29532 SFTP root escape via prefix-based path validation in goshs CVSS 4.0HIGH 8.7
  • TI-2026-26829 goshs has Auth Bypass via Share Token CVSS 3.1HIGH 8.1
See all 11 →

Sources