CVE-2026-40188 json
goshs is Missing Write Protection for Parametric Data Values
published 2026-04-10 6 mo ago modified 2026-10-26 13 d ago also EUVD-2026-21589 , GHSA-2943-crp8-38xx , GO-2026-4953
- cvss
- 7.7
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 25%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- goshs goshs 2.0.0-beta.4
- govulncheck-vulndb openSUSE Leap 16.0 0.0.20260723T184607-160000.1.1
- goshs openSUSE Tumbleweed 2.0.0-1.1
opensuse advisories openSUSE-SU-2026:21483-1openSUSE-SU-2026:10542-1
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 6 mo ago
Exploit prediction
0.32% chance of exploitation in the next 30 days, higher than 25% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/patrickhener/goshs/security/advisories/GHSA-2943-crp8-38xx referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N |
| GitHub | 3.1 | 7.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/patrickhener/goshs | >=1.0.7, <=1.1.4 >=1.0.7 |
no fix listed |
Affected products
- patrickhener goshs
Classification
- Weakness
-
- CWE-1314 Missing Write Protection for Parametric Data Values
References
-
github.com
/patrickhener/goshs/commit/141c188ce270ffbec087844a50e5e695b7da7744
web, patch
-
github.com
/patrickhener/goshs/security/advisories/GHSA-2943-crp8-38xx
exploit, web, vendor-advisory, advisory
-
github.com
/patrickhener/goshs/releases/tag/v2.0.0-beta.4
web, product, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2026-40188
advisory
-
github.com
/patrickhener/goshs
package
Sources
- CVE List CVE-2026-40188
- GitHub Advisory GHSA-2943-crp8-38xx
- NVD CVE-2026-40188
- OSV GO-2026-4953
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.