# CVE-2026-40188: goshs is Missing Write Protection for Parametric Data Values

- Severity: High 7.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 28% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-10T19:43:45.197Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-2943-crp8-38xx, GO-2026-4953
- Weaknesses: CWE-1314
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- patrickhener goshs: >= 1.0.7, < 2.0.0-beta.4
- github.com/patrickhener/goshs (Go): from 1.0.7 up to 1.1.4; from 1.0.7
- goshs goshs: from 1.0.7 before 2.0.0; 2.0.0

## Every score

- GitHub_M: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N`

## References

- <https://github.com/patrickhener/goshs/security/advisories/GHSA-2943-crp8-38xx> (exploit, advisory, vendor-advisory, web)
- <https://github.com/patrickhener/goshs/commit/141c188ce270ffbec087844a50e5e695b7da7744> (fix, patch, web)
- <https://github.com/patrickhener/goshs/releases/tag/v2.0.0-beta.4> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40188> (advisory)
- <https://github.com/patrickhener/goshs> (package)

## Sources

- CVE List: [CVE-2026-40188](https://www.cve.org/CVERecord?id=CVE-2026-40188), CVE Terms of Use, modified 2026-04-13
- GitHub Advisory Database: [GHSA-2943-crp8-38xx](https://github.com/advisories/GHSA-2943-crp8-38xx), CC-BY-4.0, modified 2026-06-08
- Go Vulnerability Database: [GO-2026-4953](https://pkg.go.dev/vuln/GO-2026-4953), CC-BY-4.0, modified 2026-05-20
- NVD: [CVE-2026-40188](https://nvd.nist.gov/vuln/detail/CVE-2026-40188), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40188 · Whole record: https://cve.day/CVE-2026-40188.json · Rebuilt by cve.day 2026-11-25T22:59:18.547Z
