{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-40188","published":"2026-04-10T20:16:23.733000Z","last_modified":"2026-10-26T21:10:00.170000Z","status":"Analyzed","cvss":{"version":"3.1","score":7.7,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","source":"security-advisories@github.com","primary":false},"auth":true,"cwes":["CWE-1314"],"cpes":[{"criteria":"cpe:2.3:a:goshs:goshs:*:*:*:*:*:go:*:*","part":"a","vendor":"goshs","product":"goshs","version_start_including":"1.0.7","version_end_excluding":"2.0.0"},{"criteria":"cpe:2.3:a:goshs:goshs:2.0.0:beta1:*:*:*:go:*:*","part":"a","vendor":"goshs","product":"goshs","version":"2.0.0"},{"criteria":"cpe:2.3:a:goshs:goshs:2.0.0:beta2:*:*:*:go:*:*","part":"a","vendor":"goshs","product":"goshs","version":"2.0.0"},{"criteria":"cpe:2.3:a:goshs:goshs:2.0.0:beta3:*:*:*:go:*:*","part":"a","vendor":"goshs","product":"goshs","version":"2.0.0"}],"cpes_truncated":false,"vendors":["goshs"],"products":["goshs/goshs"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-2943-crp8-38xx","ecosystem":"Go","name":"github.com/patrickhener/goshs","purl":"pkg:golang/github.com/patrickhener/goshs","ranges":[{"introduced":"1.0.7","last_affected":"1.1.4"}],"versions":[],"versions_truncated":false},{"advisory":"GO-2026-4953","ecosystem":"Go","name":"github.com/patrickhener/goshs","purl":"pkg:golang/github.com/patrickhener/goshs","ranges":[{"introduced":"1.0.7"}],"versions":[],"versions_truncated":false}],"severity":"high","priority_score":46,"links":{"html_es":"/es/cve/CVE-2026-40188/","html_en":"/en/cve/CVE-2026-40188/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-40188","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-40188"},"untrusted":{"vendor_name":"Goshs","product_name":"Goshs","desc_en":"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.","affected":[{"untrusted_vendor":"patrickhener","untrusted_product":"goshs","versions":[]}],"references":[{"url":"https://github.com/patrickhener/goshs/commit/141c188ce270ffbec087844a50e5e695b7da7744","tags":["Patch"]},{"url":"https://github.com/patrickhener/goshs/releases/tag/v2.0.0-beta.4","tags":["Product","Release Notes"]},{"url":"https://github.com/patrickhener/goshs/security/advisories/GHSA-2943-crp8-38xx","tags":["Exploit","Vendor Advisory"]}]},"bulletins":[{"source":"suse","id":"openSUSE-SU-2026:21483-1","url":"https://www.suse.com/support/update/","published":"2026-07-30T09:09:47+00:00","severity":"critical","exploited":false,"untrusted":{"title":"Security update for govulncheck-vulndb"}},{"source":"suse","id":"openSUSE-SU-2026:10542-1","url":"https://www.suse.com/support/update/","published":"2026-04-14T00:00:00+00:00","severity":"critical","exploited":false,"untrusted":{"title":"goshs-2.0.0-1.1 on GA media"}}]}