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.

Project Subscriptions

No data.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-2943-crp8-38xx goshs is Missing Write Protection for Parametric Data Values
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Fri, 10 Apr 2026 20:00:00 +0000

Type Values Removed Values Added
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.
Title goshs is Missing Write Protection for Parametric Data Values
Weaknesses CWE-1314
References
Metrics cvssV3_1

{'score': 7.7, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-04-10T19:43:45.197Z

Reserved: 2026-04-09T20:59:17.620Z

Link: CVE-2026-40188

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-04-10T20:16:23.733

Modified: 2026-04-10T20:16:23.733

Link: CVE-2026-40188

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses