CVE-2026-35393: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in patrickhener goshs
goshs is a SimpleHTTPServer written in Go. Prior to 2.0.0-beta.3, the POST multipart upload directory not sanitized. This vulnerability is fixed in 2.0.0-beta.3.
AI Analysis
Technical Summary
The vulnerability in goshs (prior to version 2.0.0-beta.3) involves improper limitation of a pathname to a restricted directory (CWE-22). Specifically, the POST multipart upload directory is not sanitized, which can enable an attacker to perform path traversal attacks by crafting malicious upload paths. This can lead to arbitrary file write outside the intended directory, potentially compromising system confidentiality, integrity, and availability. The vulnerability is resolved in version 2.0.0-beta.3.
Potential Impact
Successful exploitation allows an unauthenticated attacker to write files to arbitrary locations on the server filesystem due to lack of path sanitization in the upload directory. This can lead to full system compromise, including data corruption, unauthorized data disclosure, or denial of service. The CVSS score of 9.8 reflects critical impact on confidentiality, integrity, and availability.
Mitigation Recommendations
A fix is available in goshs version 2.0.0-beta.3, which properly sanitizes the POST multipart upload directory to prevent path traversal. Users should upgrade to version 2.0.0-beta.3 or later to remediate this vulnerability. No additional mitigation guidance is provided by the vendor advisory.
CVE-2026-35393: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in patrickhener goshs
Description
goshs is a SimpleHTTPServer written in Go. Prior to 2.0.0-beta.3, the POST multipart upload directory not sanitized. This vulnerability is fixed in 2.0.0-beta.3.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in goshs (prior to version 2.0.0-beta.3) involves improper limitation of a pathname to a restricted directory (CWE-22). Specifically, the POST multipart upload directory is not sanitized, which can enable an attacker to perform path traversal attacks by crafting malicious upload paths. This can lead to arbitrary file write outside the intended directory, potentially compromising system confidentiality, integrity, and availability. The vulnerability is resolved in version 2.0.0-beta.3.
Potential Impact
Successful exploitation allows an unauthenticated attacker to write files to arbitrary locations on the server filesystem due to lack of path sanitization in the upload directory. This can lead to full system compromise, including data corruption, unauthorized data disclosure, or denial of service. The CVSS score of 9.8 reflects critical impact on confidentiality, integrity, and availability.
Mitigation Recommendations
A fix is available in goshs version 2.0.0-beta.3, which properly sanitizes the POST multipart upload directory to prevent path traversal. Users should upgrade to version 2.0.0-beta.3 or later to remediate this vulnerability. No additional mitigation guidance is provided by the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-02T17:03:42.074Z
- Cvss Version
- 3.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d41eee0a160ebd92dcdbde
Added to database: 4/6/2026, 9:00:30 PM
Last enriched: 4/14/2026, 3:49:24 PM
Last updated: 5/22/2026, 3:40:02 PM
Views: 127
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.
External Links
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.