CVE-2026-40884: CWE-306: Missing Authentication for Critical Function in patrickhener goshs
CVE-2026-40884 is a critical vulnerability in goshs, a SimpleHTTPServer written in Go, affecting versions prior to 2. 0. 0-beta. 6. The issue arises when the server is started with the -b ':pass' option together with -sftp, causing goshs to accept the configuration but fail to install any SFTP password handler. This results in an authentication bypass allowing unauthenticated network attackers to access files via the SFTP service without a password. The vulnerability is fixed in version 2. 0. 0-beta. 6.
AI Analysis
Technical Summary
goshs versions before 2.0.0-beta.6 contain an SFTP authentication bypass vulnerability (CWE-306) triggered by using the documented empty-username basic-auth syntax with the -b ':pass' and -sftp options. The server accepts this configuration but does not enforce password authentication for SFTP, enabling unauthenticated remote access to files. This flaw is addressed in goshs 2.0.0-beta.6.
Potential Impact
An unauthenticated remote attacker can connect to the SFTP service and gain unauthorized access to files without providing any password. The vulnerability impacts confidentiality, integrity, and availability, as indicated by the CVSS 3.1 score of 9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
Mitigation Recommendations
Upgrade goshs to version 2.0.0-beta.6 or later, where this authentication bypass vulnerability is fixed. Since no official patch link or advisory is provided, users should verify the version and update accordingly. Patch status is confirmed by the description stating the issue is fixed in 2.0.0-beta.6.
CVE-2026-40884: CWE-306: Missing Authentication for Critical Function in patrickhener goshs
Description
CVE-2026-40884 is a critical vulnerability in goshs, a SimpleHTTPServer written in Go, affecting versions prior to 2. 0. 0-beta. 6. The issue arises when the server is started with the -b ':pass' option together with -sftp, causing goshs to accept the configuration but fail to install any SFTP password handler. This results in an authentication bypass allowing unauthenticated network attackers to access files via the SFTP service without a password. The vulnerability is fixed in version 2. 0. 0-beta. 6.
CVSS v3.1
Score 9.8critical
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
goshs versions before 2.0.0-beta.6 contain an SFTP authentication bypass vulnerability (CWE-306) triggered by using the documented empty-username basic-auth syntax with the -b ':pass' and -sftp options. The server accepts this configuration but does not enforce password authentication for SFTP, enabling unauthenticated remote access to files. This flaw is addressed in goshs 2.0.0-beta.6.
Potential Impact
An unauthenticated remote attacker can connect to the SFTP service and gain unauthorized access to files without providing any password. The vulnerability impacts confidentiality, integrity, and availability, as indicated by the CVSS 3.1 score of 9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
Mitigation Recommendations
Upgrade goshs to version 2.0.0-beta.6 or later, where this authentication bypass vulnerability is fixed. Since no official patch link or advisory is provided, users should verify the version and update accordingly. Patch status is confirmed by the description stating the issue is fixed in 2.0.0-beta.6.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-15T15:57:41.719Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e7d78519fe3cd2cdf5b31f
Added to database: 4/21/2026, 8:01:09 PM
Last enriched: 4/29/2026, 11:37:13 AM
Last updated: 6/6/2026, 8:57:09 AM
Views: 48
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.