Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-40884: CWE-306: Missing Authentication for Critical Function in patrickhener goshs

0
Critical
VulnerabilityCVE-2026-40884cvecve-2026-40884cwe-306
Published: Tue Apr 21 2026 (04/21/2026, 19:39:25 UTC)
Source: CVE Database V5
Vendor/Project: patrickhener
Product: 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

AILast updated: 04/21/2026, 20:16:35 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses