{"id":"CVE-2026-40188","revision":"2f7bf5767ec548118536ba32aad254cc","records":[{"revision":"2f7bf5767ec548118536ba32aad254cc","observedAt":"2026-10-25T09:17:24.328+00:00","statement":{"source":"nvd","id":"CVE-2026-40188","aliases":[],"title":"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 vulnera…","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.","state":0,"publishedAt":"2026-04-10T20:16:23.733+00:00","modifiedAt":"2026-06-17T10:44:50.5+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","score":7.7,"severity":"HIGH"}],"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"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-40188","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-1314"],"productCriteria":["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:*:*"],"sourceDates":{"published":"2026-04-10T20:16:23.733","lastModified":"2026-06-17T10:44:50.500"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-40188","identifiers":["CVE-2026-40188"]},"retained":false,"historicalAffected":[]}],"coverage":[]}