CVE-2026-40188: goshs is Missing Write Protection for Parametric Data Values
Analyzed
AliasesGHSA-2943-crp8-38xxGO-2026-4953
Published 10-04-2026Last modified 13-04-2026
Vulnerability summary
CVE-2026-40188 is a high (CVSS 7.7) vulnerability in goshs. EPSS estimates a 0.39% chance of exploitation in the next 30 days, higher than 31.7% of scored vulnerabilities. 1 public exploit is recorded.
CVSS score
7.7/10
010
High · v3.1 (CVE.org)EPSS score
0.39%
0%100%
Low · +0.07 pp in 30 daysKEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github
Advisory lineage
Upstream 0 · Downstream 2 · Related 2Timeline
- 10-04-2026PublishedVulnerability first disclosed.
- 13-04-2026Last modifiedVulnerability information updated.
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 metrics
3 scores · 3 sources · 1 versionHigh 7.7Preferred score · CVE.org (CNA)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:NSourcesAll 3 agree
- OSV · GoEcosystem advisory · calculated7.7HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
- NVDNIST7.7HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
EPSS trend
Probability
0.39%
Chance of exploitation in the next 30 days
Percentile
32%
Versus all other CVEs
30-day change
Increase +0.07 pp
From 0.32% on 22-09-2026
22-09-202622-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundGoshs
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Github.com/patrickhener1 product
- goshs≥ 1.0.7, ≤ 1.1.4 | ≥ 1.0.7 (No fix recorded)
Goshs1 product
- goshs≥ 1.0.7, < 2.0.0 | 2.0.0:beta1 | 2.0.0:beta2 | 2.0.0:beta3
Patrickhener1 product
- goshs≥ 1.0.7, < 2.0.0-beta.4
3 vendors · 3 products
References
5 links- github.com/patrickhener/goshs/security/advisories/GHSA-2943-crp8-38xxX Refsource CONFIRMWEBAdvisoryExploitVendor Advisory
- github.com/patrickhener/goshs/commit/141c188ce270ffbec087844a50e5e695b7da7744X Refsource MISCWEBFIXPatch