Skip to content
OpenAdvisories
High · 7.7 CVE-2026-40188 EUVD-2026-21589GHSA-2943-crp8-38xxGO-2026-4953

goshs is Missing Write Protection for Parametric Data Values

Published Apr 10, 2026 · Updated Apr 13, 2026 · 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.

Affected products

VendorProductAffectedFixed
patrickhener goshs >= 1.0.7, < 2.0.0-beta.4 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed goshs 2.0.0-1.1 openSUSE-SU-2026:10542-1
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/patrickhener/goshs >= 1.0.7, <= 1.1.4 — GHSA-2943-crp8-38xx
Go github.com/patrickhener/goshs >= 1.0.7 — GO-2026-4953

Advisories 2

References