Back
CVE-2026-40188
goshs is Missing Write Protection for Parametric Data Values
High7.7EPSS 0.32%
- Published
- Updated
- Reserved
- Assigned by
- GitHub_M
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High7.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N |
| NVDNVD · Analyzed | 3.1 | High7.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N |
- EPSS (exploitation in 30 days)
- 0.32% · top 75% of all CVEs (6 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: no · Technical impact: partial
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.7.
Weakness
Affected products
- affected >= 1.0.7, < 2.0.0-beta.4
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Gogithub.com/patrickhener/goshsGHSA-2943-crp8-38xx (opens in a new tab)
References (3)
- https://github.com/patrickhener/goshs/security/advisories/GHSA-2943-crp8-38xx (opens in a new tab)x_refsource_CONFIRMexploit
- https://github.com/patrickhener/goshs/commit/141c188ce270ffbec087844a50e5e695b7da7744 (opens in a new tab)x_refsource_MISC
- https://github.com/patrickhener/goshs/releases/tag/v2.0.0-beta.4 (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-2943-crp8-38xx (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2026-40188)Record last updated .