Security mailing lists by PureSourceCode

CVE-2026-40188

HIGH 7.7CVSS 3.1

goshs 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD goshs goshs
cpe:2.3:a:goshs:goshs:*:*:*:*:*:go:*:*
>= 1.0.7, < 2.0.0 2.0.0
NVD goshs goshs
cpe:2.3:a:goshs:goshs:2.0.0:beta1:*:*:*:go:*:*
= 2.0.0
NVD goshs goshs
cpe:2.3:a:goshs:goshs:2.0.0:beta2:*:*:*:go:*:*
= 2.0.0
NVD goshs goshs
cpe: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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.