goshs has a Path Traversal issue
goshs-labs goshs
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| goshs.de/goshs/v2 Go |
|
|
| github.com/patrickhener/goshs/v2 Go |
|
|
goshs-labs goshs
| Product | Affected | Fixed in |
|---|---|---|
| goshs.de/goshs/v2 Go |
|
|
| github.com/patrickhener/goshs/v2 Go |
|
|
|
| No fix yet |
| github.com/patrickhener/goshs Go |
| No fix yet |
goshs is a feature-rich single-binary file server for red teamers and developers. Prior to 2.1.5, the httpserver/updown.go multipart upload handler split part.FileName() on / but did not reject .., allowing an unauthenticated upload with filename .. to create a file outside the served tree. This issue is fixed in version 2.1.5.
From the CVE record · GitHub_M
The goshs multipart upload handler does not reject `..` in an uploaded filename. An unauthenticated attacker can upload a file named `..` to create a file outside the served tree.
Check deployments using `goshs.de/goshs/v2` or `github.com/patrickhener/goshs/v2` before 2.1.5-0.20260727065949-f3ef599e4091, or the unversioned `goshs.de/goshs` or `github.com/patrickhener/goshs` packages through 1.1.4.