Skip to content
Fencer Vulns
high 7.7

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

Sources

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.