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…
EPSS 0.1%top 73%

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

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/29/2026, 11:37:13 UTC

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.

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/29/2026, 11:37:13 AM

Last updated: 6/6/2026, 8:57:09 AM

Views: 48

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