{"api_version":"1","generated_at":"2026-04-11T07:56:44+00:00","cve":"CVE-2026-40188","urls":{"html":"https://cve.report/CVE-2026-40188","api":"https://cve.report/api/cve/CVE-2026-40188.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-40188","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-40188"},"summary":{"title":"goshs is Missing Write Protection for Parametric Data Values","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":"PUBLISHED","assigner":"GitHub_M","published_at":"2026-04-10 20:16:23","updated_at":"2026-04-10 20:16:23"},"problem_types":["CWE-1314","CWE-1314 CWE-1314: Missing Write Protection for Parametric Data Values"],"metrics":[{"version":"3.1","source":"security-advisories@github.com","type":"Secondary","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","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","baseScore":7.7,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"NONE"}},{"version":"3.1","source":"CNA","type":"DECLARED","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","data":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.7,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","version":"3.1"}}],"references":[{"url":"https://github.com/patrickhener/goshs/commit/141c188ce270ffbec087844a50e5e695b7da7744","name":"https://github.com/patrickhener/goshs/commit/141c188ce270ffbec087844a50e5e695b7da7744","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/patrickhener/goshs/security/advisories/GHSA-2943-crp8-38xx","name":"https://github.com/patrickhener/goshs/security/advisories/GHSA-2943-crp8-38xx","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/patrickhener/goshs/releases/tag/v2.0.0-beta.4","name":"https://github.com/patrickhener/goshs/releases/tag/v2.0.0-beta.4","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-40188","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40188","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"patrickhener","product":"goshs","version":"affected >= 1.0.7, < 2.0.0-beta.4","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"product":"goshs","vendor":"patrickhener","versions":[{"status":"affected","version":">= 1.0.7, < 2.0.0-beta.4"}]}],"descriptions":[{"lang":"en","value":"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."}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.7,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-1314","description":"CWE-1314: Missing Write Protection for Parametric Data Values","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-04-10T19:43:45.197Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","shortName":"GitHub_M"},"references":[{"name":"https://github.com/patrickhener/goshs/security/advisories/GHSA-2943-crp8-38xx","tags":["x_refsource_CONFIRM"],"url":"https://github.com/patrickhener/goshs/security/advisories/GHSA-2943-crp8-38xx"},{"name":"https://github.com/patrickhener/goshs/commit/141c188ce270ffbec087844a50e5e695b7da7744","tags":["x_refsource_MISC"],"url":"https://github.com/patrickhener/goshs/commit/141c188ce270ffbec087844a50e5e695b7da7744"},{"name":"https://github.com/patrickhener/goshs/releases/tag/v2.0.0-beta.4","tags":["x_refsource_MISC"],"url":"https://github.com/patrickhener/goshs/releases/tag/v2.0.0-beta.4"}],"source":{"advisory":"GHSA-2943-crp8-38xx","discovery":"UNKNOWN"},"title":"goshs is Missing Write Protection for Parametric Data Values"}},"cveMetadata":{"assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","assignerShortName":"GitHub_M","cveId":"CVE-2026-40188","datePublished":"2026-04-10T19:43:45.197Z","dateReserved":"2026-04-09T20:59:17.620Z","dateUpdated":"2026-04-10T19:43:45.197Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-04-10 20:16:23","lastModifiedDate":"2026-04-10 20:16:23","problem_types":["CWE-1314","CWE-1314 CWE-1314: Missing Write Protection for Parametric Data Values"],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","baseScore":7.7,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"NONE"},"exploitabilityScore":3.1,"impactScore":4}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"40188","Ordinal":"1","Title":"goshs is Missing Write Protection for Parametric Data Values","CVE":"CVE-2026-40188","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"40188","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"goshs is Missing Write Protection for Parametric Data Values"}]}}}