CVE-2026-40188
CVE-2026-40188 is a high-severity vulnerability in Goshs with a CVSS 3.x base score of 7.7. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-1314.
Key facts
- Severity: High (CVSS 3.x base score 7.7)
- EPSS exploit prediction: 0% (24th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2026-21589
- Weakness: CWE-1314
- Affected product: Goshs
- Published:
- Last modified:
Description
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.
Frequently asked questions
- What is CVE-2026-40188?
- 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.
- How severe is CVE-2026-40188?
- CVE-2026-40188 has a CVSS 3.x base score of 7.7, rated high severity. It is exploitable over network with low attack complexity, requires low privileges and no user interaction. Impact on confidentiality is none, integrity high, and availability none.
- Is CVE-2026-40188 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (24th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2026-40188?
- CVE-2026-40188 primarily affects Goshs. In total, 4 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2026-40188?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- Does CVE-2026-40188 have an EU (EUVD) identifier?
- Yes. CVE-2026-40188 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2026-21589.
- When was CVE-2026-40188 published?
- CVE-2026-40188 was published on 2026-04-10 and last updated on 2026-06-17.
References
- https://github.com/patrickhener/goshs/commit/141c188ce270ffbec087844a50e5e695b7da7744
- https://github.com/patrickhener/goshs/releases/tag/v2.0.0-beta.4
- https://github.com/patrickhener/goshs/security/advisories/GHSA-2943-crp8-38xx
Affected products (4)
- cpe:2.3:a:goshs:goshs:*:*:*:*:*:go:*:*
- cpe:2.3:a:goshs:goshs:2.0.0:beta1:*:*:*:go:*:*
- cpe:2.3:a:goshs:goshs:2.0.0:beta2:*:*:*:go:*:*
- cpe:2.3:a:goshs:goshs:2.0.0:beta3:*:*:*:go:*:*
More vulnerabilities in Goshs
- CVE-2026-40884 — Critical (CVSS 9.8): goshs is a SimpleHTTPServer written in Go. Prior to 2.0.0-beta.6, goshs contains an SFTP authentication bypass when the…
- CVE-2026-40189 — Critical (CVSS 9.8): goshs is a SimpleHTTPServer written in Go. Prior to 2.0.0-beta.4, goshs enforces the documented per-folder .goshs…
- CVE-2026-35471 — Critical (CVSS 9.8): goshs is a SimpleHTTPServer written in Go. Prior to 2.0.0-beta.3, tdeleteFile() missing return after path traversal…
- CVE-2026-35393 — Critical (CVSS 9.8): goshs is a SimpleHTTPServer written in Go. Prior to 2.0.0-beta.3, the POST multipart upload directory not sanitized.…
- CVE-2026-35392 — Critical (CVSS 9.8): goshs is a SimpleHTTPServer written in Go. Prior to 2.0.0-beta.3, PUT upload in httpserver/updown.go has no path…
- CVE-2026-40903 — Critical (CVSS 9.1): goshs is a SimpleHTTPServer written in Go. Prior to 2.0.0-beta.6, goshs has an ArtiPACKED vulnerability. ArtiPACKED can…