CVE-2026-40188: CWE-1314: Missing Write Protection for Parametric Data Values in patrickhener goshs
CVE-2026-40188 is a high-severity vulnerability in patrickhener's goshs SimpleHTTPServer written in Go. Versions from 1. 0. 7 up to but not including 2. 0. 0-beta. 4 improperly sanitize the destination path in the SFTP rename command, allowing writes outside the intended root directory. This can lead to unauthorized modification of files outside the SFTP root. The issue is fixed starting with version 2. 0.
AI Analysis
Technical Summary
The goshs SimpleHTTPServer (Go-based) versions >=1.0.7 and <2.0.0-beta.4 contain a vulnerability where the SFTP rename command sanitizes only the source path but not the destination path. This lack of destination path sanitization allows an attacker with limited privileges to rename files to locations outside the SFTP root directory, effectively bypassing intended write restrictions. This vulnerability is tracked as CWE-1314 (Missing Write Protection for Parametric Data Values). The vulnerability has a CVSS 3.1 base score of 7.7, indicating high severity, with network attack vector, low attack complexity, required privileges, no user interaction, and impacts integrity but not confidentiality or availability. The issue is fixed in version 2.0.0-beta.4.
Potential Impact
An attacker with privileges to use the SFTP rename command can write files outside the designated root directory, potentially modifying or overwriting files that should be protected. This compromises the integrity of the system by allowing unauthorized file modifications. There is no direct impact on confidentiality or availability reported. No known exploits in the wild have been documented.
Mitigation Recommendations
Upgrade goshs to version 2.0.0-beta.4 or later, where the vulnerability is fixed by properly sanitizing the destination path in the SFTP rename command. Since no official patch link or advisory is provided, users should verify the version upgrade from the vendor or project repository. Patch status is not explicitly confirmed beyond the version fix; check the vendor repository for the latest remediation guidance.
CVE-2026-40188: CWE-1314: Missing Write Protection for Parametric Data Values in patrickhener goshs
Description
CVE-2026-40188 is a high-severity vulnerability in patrickhener's goshs SimpleHTTPServer written in Go. Versions from 1. 0. 7 up to but not including 2. 0. 0-beta. 4 improperly sanitize the destination path in the SFTP rename command, allowing writes outside the intended root directory. This can lead to unauthorized modification of files outside the SFTP root. The issue is fixed starting with version 2. 0.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The goshs SimpleHTTPServer (Go-based) versions >=1.0.7 and <2.0.0-beta.4 contain a vulnerability where the SFTP rename command sanitizes only the source path but not the destination path. This lack of destination path sanitization allows an attacker with limited privileges to rename files to locations outside the SFTP root directory, effectively bypassing intended write restrictions. This vulnerability is tracked as CWE-1314 (Missing Write Protection for Parametric Data Values). The vulnerability has a CVSS 3.1 base score of 7.7, indicating high severity, with network attack vector, low attack complexity, required privileges, no user interaction, and impacts integrity but not confidentiality or availability. The issue is fixed in version 2.0.0-beta.4.
Potential Impact
An attacker with privileges to use the SFTP rename command can write files outside the designated root directory, potentially modifying or overwriting files that should be protected. This compromises the integrity of the system by allowing unauthorized file modifications. There is no direct impact on confidentiality or availability reported. No known exploits in the wild have been documented.
Mitigation Recommendations
Upgrade goshs to version 2.0.0-beta.4 or later, where the vulnerability is fixed by properly sanitizing the destination path in the SFTP rename command. Since no official patch link or advisory is provided, users should verify the version upgrade from the vendor or project repository. Patch status is not explicitly confirmed beyond the version fix; check the vendor repository for the latest remediation guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-09T20:59:17.620Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d9581c1cc7ad14dae48c7b
Added to database: 4/10/2026, 8:05:48 PM
Last enriched: 4/10/2026, 8:20:54 PM
Last updated: 4/10/2026, 11:24:19 PM
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.