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

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

Affected products (4)

More vulnerabilities in Goshs

All CVEs affecting Goshs →