PT-2026-65625
CVE-2026-66063
·
Published
2026-07-28
·
Updated
2026-09-04
Description by
CVSS 3.1
6.5
MediumMetricsAV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions
goshs versions prior to 2.1.5
Description
The multipart upload handler in the
httpserver/updown.go file splits the part.FileName() on the path separator but fails to reject the .. sequence. This allows an unauthenticated user to upload a file with a filename of .., resulting in the creation of a file outside the served tree (webroot) via the os.Create() function. This occurs because the application does not validate if the final resolved destination remains within the intended upload folder.Recommendations
Update to version 2.1.5.
Reject any upload filename that is
.., is empty after sanitization, or resolves outside the upload folder.
Validate the final resolved destination of the upload rather than only transforming the input. Found an issue in the description? Have something to add? Feel free to write us 👾