goshs SFTP authentication bypass via empty password (incomplete fix of CVE-2026-40884)
CVE-2026-62325GHSA-rjrw-mjq6-hpmm
What to do
Partial vendor fix. Follow the primary source's mitigation guidance and check back for a fix.
This page has no inventory attached, so it cannot say whether you are affected. A vendor fix is not proof that your deployment is fixed.
Affected packages
Go goshs.de/goshs
- Affected
- every version
- Fixed in
- no fixed version recorded
Go goshs.de/goshs/v2
- Affected
- >= 2.1.3, <= 2.1.3
- Fixed in
- 2.1.4
Go github.com/patrickhener/goshs/v2
- Affected
- >= 2.1.3, <= 2.1.3
- Fixed in
- 2.1.4
Sources
- Open Source Vulnerabilities (OSV.dev), including the GitHub Advisory Database
OSV record GHSA-rjrw-mjq6-hpmm lists affected ranges: Go github.com/patrickhener/goshs/v2 >=2.1.3 =2.1.3 <2.1.4 (fixed)
VerifiedObserved Structured OSV record; GitHub-reviewed advisory.
- Open Source Vulnerabilities (OSV.dev), including the GitHub Advisory Database
OSV record GO-2026-6132 lists affected ranges: Go goshs.de/goshs >=0; Go goshs.de/goshs/v2 >=2.1.3 <2.1.4 (fixed)
VerifiedObserved Structured OSV record; not marked as GitHub-reviewed.
- GitHub Advisory Database and maintainer security advisories on GitHub
GitHub-reviewed advisory GHSA-rjrw-mjq6-hpmm lists affected ranges: Go github.com/patrickhener/goshs/v2 >=2.1.3 =2.1.3 <=2.1.3
VerifiedObserved Structured GitHub Advisory Database record (type=reviewed) from the GitHub REST API.
Severity and exploitation
- Exploitation
- No confirmed exploitation recorded. Patch Next marks exploitation only from CISA KEV.
- CVSS
- 9.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- EPSS
- CVE-2026-62325: 0.43% estimated exploitation activity in the next 30 days; percentile 36.94 (FIRST EPSS, 2026-11-03). This is a model estimate, not proof of exploitation or customer exposure.
Source description
As published by the source; long descriptions are shortened.
Summary Start goshs v2.1.3 with -b 'admin:' -sftp. No -fkf. SFTP accepts connections without password. CVE-2026-40884 blocks the empty-username variant (-b ':pass'). The empty-password variant bypasses that fix. CVE-2026-40884 CVE-2026-40884 (GHSA-c29w-qq4m-2gcv, Apr 13 2026) reported the empty-username case: -b ':pass' with -sftp. sftpserver.go:85 uses &&: Empty username → Username != "" false → PasswordHandler nil. No -fkf means PublicKeyHandler also nil. gliderlabs/ssh sees all handlers nil and sets NoClientAuth = true. Unauthenticated access. Patrickhener fixed it with a sanity check at sanity/checks.go:114-118: HasPrefix(":") catches empty username. It does not catch empty password. Empty Password Bypass Same && at sftpserver.go:85. Same nil handler. Different input: - Username = "admin", Password = "" - Username != "" && Password != "" → false. Password is empty. - PasswordHandler not set. No -fkf → PublicKeyHandler not set. - gliderlabs/ssh → NoClientAuth = true.…
Dates and revisions
- Published by the source
- Last modified by the source
- Source last checked
- Revision 3 · amended ·
Amended from ghsa record GHSA-rjrw-mjq6-hpmm
- Revision 2 · amended ·
Amended from osv record GO-2026-6132
- Revision 1 · created ·
Published from osv record GHSA-rjrw-mjq6-hpmm
Agent brief
Preview the exact text before you copy it. Commands are read-only suggestions; review them before running anything.
# Patch Next advisory brief: CVE-2026-62325 Advisory: goshs SFTP authentication bypass via empty password (incomplete fix of CVE-2026-40884) IDs: CVE-2026-62325, GHSA-rjrw-mjq6-hpmm Record: https://patchnext.com/advisories/cve-2026-62325 (revision 3, source checked 26 Oct 2026, 15:27 UTC) Inventory: none attached. This brief comes from a public page and does not say whether any deployment is affected. Severity: Critical (CVSS 9.1) Exploitation: no confirmed exploitation recorded. Patch Next confirms exploitation only from CISA KEV. Vendor response: Partial vendor fix; fixed versions by package: goshs.de/goshs/v2 2.1.4; github.com/patrickhener/goshs/v2 2.1.4. A vendor fix does not mean a deployment is fixed. ## Affected components - Go goshs.de/goshs: affected every version - Go goshs.de/goshs/v2: affected >= 2.1.3, <= 2.1.3; fixed in 2.1.4 - Go github.com/patrickhener/goshs/v2: affected >= 2.1.3, <= 2.1.3; fixed in 2.1.4 ## Suggested inspection (read-only) - Go goshs.de/goshs: check the installed version with your package manager. - Go goshs.de/goshs/v2: check the installed version with your package manager. - Go github.com/patrickhener/goshs/v2: check the installed version with your package manager. ## Supported action No complete vendor fix is recorded. Follow the primary source's mitigation guidance and check this record again before closing anything. ## Required regression checks - Run the test suite and a production build. - Exercise the features that depend on goshs.de/goshs, goshs.de/goshs/v2, github.com/patrickhener/goshs/v2. - Repeat the inspection and confirm that only fixed versions remain installed. ## Rollback considerations - Keep the previous lockfile and deployment artifact. Rolling back reinstates the vulnerable version, so apply any documented mitigation while you fix forward. ## Unresolved questions - Which deployments run an affected version? - Exploitation status can change. Check again before lowering the priority. - Mark the work resolved only after the fixed version is verified in production. ## Sources - Verified: https://osv.dev/vulnerability/GHSA-rjrw-mjq6-hpmm (OSV record GHSA-rjrw-mjq6-hpmm lists affected ranges: Go github.com/patrickhener/goshs/v2 >=2.1.3 =2.1.3 <2.1.4 (fixed)) - Verified: https://osv.dev/vulnerability/GO-2026-6132 (OSV record GO-2026-6132 lists affected ranges: Go goshs.de/goshs >=0; Go goshs.de/goshs/v2 >=2.1.3 <2.1.4 (fixed)) - Verified: https://github.com/advisories/GHSA-rjrw-mjq6-hpmm (GitHub-reviewed advisory GHSA-rjrw-mjq6-hpmm lists affected ranges: Go github.com/patrickhener/goshs/v2 >=2.1.3 =2.1.3 <=2.1.3) Commands are suggestions: review each one before running it.
Loading voting…