CVE-2026-62325: goshs SFTP authentication bypass via empty password (incomplete fix of CVE-2026-40884)
goshs is a feature-rich single-binary file server for red teamers and developers. From 2.1.3 until 2.1.4, the sftpserver/sftpserver.go password handler used Username != "" && Password != "", so running goshs with -b 'admin:' -sftp and no -fkf left both SFTP authentication handlers unset and allowed unauthenticated file access. This issue is fixed in version 2.1.4.
Security readout for executives and security teams
Plain-English summary
A specific goshs 2.1.3 SFTP configuration can unintentionally provide file access without authentication. An attacker reaching the service could read or modify hosted files without credentials. The issue is fixed in goshs 2.1.4 and is described as an incomplete fix of CVE-2026-40884.
Executive priority
Treat confirmed vulnerable configurations as an immediate remediation priority because unauthorized parties may read or alter business files remotely. Prioritize externally reachable systems first. Systems not matching the specific configuration should still be inventoried and documented, but the supplied evidence does not establish that they are vulnerable.
Technical view
In goshs 2.1.3, an empty configured password combined with SFTP enabled and no key file could leave both SFTP authentication handlers unset. This results in missing authentication, classified as CWE-306. The CVSS 3.1 score is 9.1, reflecting network access, low complexity, and high confidentiality and integrity impact.
Likely exposure
Exposure is limited to goshs version 2.1.3 instances using SFTP with a named account, an empty password, and no key-file authentication. Internet-accessible or broadly reachable instances in this configuration present the greatest business risk. Other versions or configurations are not established as affected by the supplied sources.
Exploitation context
The vulnerable condition requires no prior privileges or user interaction and is remotely reachable when SFTP is exposed. The supplied record is not in KEV and provides no evidence of active exploitation. Exploitation status should therefore be treated as unknown, not active.
Researcher notes
This is an authentication-bypass flaw caused by absent SFTP authentication handlers, not a password-guessing weakness. It is identified as an incomplete fix of CVE-2026-40884. Review the linked corrective commit and advisory when validating custom builds. Availability impact is scored as none; confidentiality and integrity impacts are high.
Mitigation direction
Upgrade affected goshs installations to version 2.1.4 or later.
Disable SFTP until the upgrade is complete if continued operation is unnecessary.
Restrict network access to affected SFTP services while remediation is pending.
Avoid empty-password configurations and follow the vendor advisory for supported authentication settings.
Validation and detection
Inventory goshs versions and identify any installation running version 2.1.3.
Review whether SFTP is enabled on each identified installation.
Check for accounts configured with an empty password.
Confirm key-file authentication is configured where SFTP remains enabled.
After upgrading, verify the deployed binary reports version 2.1.4 or later.
Confirm unauthenticated SFTP access is rejected using an authorized defensive test.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-306: Credential and account abuse lookup
Authentication and credential weaknesses can make valid-account abuse and credential telemetry useful review starting points. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references authentication or credential exposure, so valid-account and credential-access review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
1ADP providers
4Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: pocAutomatable: yesTechnical Impact: total
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-306 · source CWE mapping
Missing Authentication for Critical Function
Missing Authentication for Critical Function represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.