PT-2026-32038 · Goshs · Goshs

·

CVE-2026-40188

·

Published

2026-04-10

·

Updated

2026-07-30

CVSS v3.1

7.7

High

VectorAV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
Name of the Vulnerable Software and Affected Versions: goshs versions 1.0.7 through 2.0.0-beta.4
Description: goshs is a SimpleHTTPServer written in Go. The SFTP command rename sanitizes only the source path and not the destination, allowing a write outside of the root directory of the SFTP. This can be used for file write, potentially leading to remote code execution by overwriting SSH keys or configuration files.
Recommendations: Update to goshs version 2.0.0-beta.4 or later.

Exploit

Fix

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-40188
GHSA-2943-CRP8-38XX
GO-2026-4953
OPENSUSE-SU-2026:10542-1
OPENSUSE-SU-2026:21483-1

Affected Products

Goshs