Vulnerability

CVE-2026-40188

highCVSS 3.1 7.7Published 10 Apr 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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.

Affected products

From the NVD's configuration data (CPE), vendor first.

  • Goshs goshs

Weakness type

References

  • github.com /patrickhener/goshs/commit/141c188ce270ffbec087844a50e5e695…
  • github.com /patrickhener/goshs/releases/tag/v2.0.0-beta.4
  • github.com /patrickhener/goshs/security/advisories/GHSA-2943-crp8-38xx

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning