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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| 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
- openSUSE-SU-2026:21483-1 Security update for govulncheck-vulndb SUSE / openSUSE Security Updates · Jul 31, 2026
- openSUSE-SU-2026:10542-1 goshs-2.0.0-1.1 on GA media SUSE / openSUSE Security Updates · Apr 15, 2026