CVE-2026-40188
HIGH 7.7CVSS 3.1goshs is Missing Write Protection for Parametric Data Values
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.
- Published
- 10 Apr 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-1314
- Also known as
- GHSA-2943-crp8-38xxGO-2026-4953
- Sources
- NVDJSONOSV GHSA-2943-crp8-38xxJSONOSV GO-2026-4953JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | goshs | goshscpe:2.3:a:goshs:goshs:*:*:*:*:*:go:*:* |
>= 1.0.7, < 2.0.0 | 2.0.0 |
| NVD | goshs | goshscpe:2.3:a:goshs:goshs:2.0.0:beta1:*:*:*:go:*:* |
= 2.0.0 | |
| NVD | goshs | goshscpe:2.3:a:goshs:goshs:2.0.0:beta2:*:*:*:go:*:* |
= 2.0.0 | |
| NVD | goshs | goshscpe:2.3:a:goshs:goshs:2.0.0:beta3:*:*:*:go:*:* |
= 2.0.0 | |
| OSV | Go | github.com/patrickhener/goshs | >= 1.0.7, <= 1.1.4 | |
| OSV | Go | github.com/patrickhener/goshs | >= 1.0.7 |
References
- https://github.com/patrickhener/goshs/commit/141c188ce270ffbec087844a50e5e695b7da7744 · Patch, WEB, FIX
- https://github.com/patrickhener/goshs/releases/tag/v2.0.0-beta.4 · Product, Release Notes, WEB
- https://github.com/patrickhener/goshs/security/advisories/GHSA-2943-crp8-38xx · Exploit, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-40188 · ADVISORY
- https://github.com/patrickhener/goshs · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 10 Apr 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 20 May 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 10 Apr 2026)