{"cve":"CVE-2026-40188","nvd":{"published":"2026-04-10T20:16:23.733","modified":"2026-10-26T21:10:00.170","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","score":7.7},"cwes":["CWE-1314"],"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","https://github.com/patrickhener/goshs/security/advisories/GHSA-2943-crp8-38xx"],"products":["goshs:goshs"],"source":"nvd","synced_at":"2026-10-26T21:38:48.864438205+00:00"},"epss":{"cve":"CVE-2026-40188","score":0.00318,"percentile":0.2453,"date":"2026-10-26"},"kev":null,"osv":[{"id":"GHSA-2943-crp8-38xx","url":"https://osv.dev/vulnerability/GHSA-2943-crp8-38xx","summary":"goshs is Missing Write Protection for Parametric Data Values","modified":"2026-06-08T20:08:46Z","packages":[{"ecosystem":"Go","name":"github.com/patrickhener/goshs","purl":"pkg:golang/github.com/patrickhener/goshs","ranges":[">=1.0.7 <=1.1.4"],"fixed":[]}]},{"id":"GO-2026-4953","url":"https://osv.dev/vulnerability/GO-2026-4953","summary":"goshs is Missing Write Protection for Parametric Data Values in github.com/patrickhener/goshs","modified":"2026-05-20T19:30:11.533578112Z","packages":[{"ecosystem":"Go","name":"github.com/patrickhener/goshs","purl":"pkg:golang/github.com/patrickhener/goshs","ranges":[">=1.0.7"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}