CVE-2026-40188Goshs
High 7.7
Follow: this CVE · Goshs · Goshs We alert you by email or Slack (account required).
- Priority
- 46
- CVSS 3.1
- 7.7
- EPSS
- —
- Auth required
- Yes
- Published
- Apr 10, 2026
- Updated
- Oct 26, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1314
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
What happens
goshs is a SimpleHTTPServer written in Go. From 1.0.7 to before 2.0.0-beta.4, the SFTP command rename sanitizes only the source path and not the destination, so it is possible to write outside of the root directory of the SFTP. This vulnerability is fixed in 2.0.0-beta.4.
What to do
- Apply the vendor's security update for Goshs.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/patrickhener/goshs |
≥ 1.0.7 ≤ 1.1.4 |
no fixed version | — |
| Go | github.com/patrickhener/goshs |
≥ 1.0.7 |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-2943-crp8-38xx, GO-2026-4953). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| goshs | goshs | ≥ 1.0.7 < 2.0.0 |
| goshs | goshs | 2.0.0 |
| goshs | goshs | 2.0.0 |
| goshs | goshs | 2.0.0 |
Official advisories
- Security update for govulncheck-vulndb · SUSE · openSUSE-SU-2026:21483-1 · Jul 30, 2026 Critical
- goshs-2.0.0-1.1 on GA media · SUSE · openSUSE-SU-2026:10542-1 · Apr 14, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Product Release Notes
- github.com Exploit Vendor Advisory