CVE-2026-40884: CWE-306: Missing Authentication for Critical Function in patrickhener goshs
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.
AI Analysis
Technical Summary
The vulnerability in goshs versions before 2.0.0-beta.6 involves an authentication bypass in the SFTP service when the server is configured with the -b ':pass' and -sftp flags. Under these conditions, goshs accepts the configuration but fails to install any SFTP password handler, allowing unauthenticated network attackers to connect and access files without a password. This is classified under CWE-306, indicating missing authentication for a critical function. The vulnerability has a high CVSS 3.1 score of 9.8, reflecting its critical impact on confidentiality, integrity, and availability. The issue is resolved in version 2.0.0-beta.6.
Potential Impact
An unauthenticated remote attacker can bypass SFTP authentication and gain unauthorized access to files on the affected goshs server. This compromises confidentiality, integrity, and availability of data served via SFTP. The vulnerability is critical due to the lack of authentication enforcement on a critical function, potentially allowing full unauthorized file access.
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 remediation level is provided, users should verify the upgrade from the official project repository or vendor source. Until upgraded, avoid using the vulnerable configuration flags (-b ':pass' with -sftp) to prevent exposure. Patch status is not explicitly confirmed beyond the version fix note; check the vendor advisory for the latest remediation guidance.
CVE-2026-40884: CWE-306: Missing Authentication for Critical Function in patrickhener goshs
Description
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in goshs versions before 2.0.0-beta.6 involves an authentication bypass in the SFTP service when the server is configured with the -b ':pass' and -sftp flags. Under these conditions, goshs accepts the configuration but fails to install any SFTP password handler, allowing unauthenticated network attackers to connect and access files without a password. This is classified under CWE-306, indicating missing authentication for a critical function. The vulnerability has a high CVSS 3.1 score of 9.8, reflecting its critical impact on confidentiality, integrity, and availability. The issue is resolved in version 2.0.0-beta.6.
Potential Impact
An unauthenticated remote attacker can bypass SFTP authentication and gain unauthorized access to files on the affected goshs server. This compromises confidentiality, integrity, and availability of data served via SFTP. The vulnerability is critical due to the lack of authentication enforcement on a critical function, potentially allowing full unauthorized file access.
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 remediation level is provided, users should verify the upgrade from the official project repository or vendor source. Until upgraded, avoid using the vulnerable configuration flags (-b ':pass' with -sftp) to prevent exposure. Patch status is not explicitly confirmed beyond the version fix note; check the vendor advisory for the latest remediation guidance.
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/21/2026, 8:16:35 PM
Last updated: 4/22/2026, 6:05:00 AM
Views: 11
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.