High severity7.7NVD Advisory· Published Apr 10, 2026· Updated Apr 14, 2026
CVE-2026-40188
CVE-2026-40188
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/patrickhener/goshsGo | >= 1.0.7, <= 1.1.4 | — |
Affected products
6- ghsa-coords2 versions
>= 1.0.7, <= 1.1.4+ 1 more
- (no CPE)range: >= 1.0.7, <= 1.1.4
- (no CPE)range: < 2.0.0-1.1
Patches
Vulnerability mechanics
References
5- github.com/patrickhener/goshs/commit/141c188ce270ffbec087844a50e5e695b7da7744nvdPatchWEB
- github.com/patrickhener/goshs/security/advisories/GHSA-2943-crp8-38xxnvdExploitVendor AdvisoryWEB
- github.com/advisories/GHSA-2943-crp8-38xxghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-40188ghsaADVISORY
- github.com/patrickhener/goshs/releases/tag/v2.0.0-beta.4nvdProductRelease NotesWEB
News mentions
0No linked articles in our index yet.