CVE-2026-35392: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in patrickhener goshs
CVE-2026-35392 is a critical path traversal vulnerability in patrickhener's goshs SimpleHTTPServer written in Go. Versions prior to 2. 0. 0-beta. 3 do not sanitize file paths during PUT uploads, allowing attackers to write files outside the intended directory. This can lead to full compromise of confidentiality, integrity, and availability. The vulnerability is fixed in version 2. 0. 0-beta. 3.
AI Analysis
Technical Summary
The goshs SimpleHTTPServer prior to version 2.0.0-beta.3 contains a path traversal vulnerability (CWE-22) in the PUT upload functionality implemented in httpserver/updown.go. The lack of path sanitization allows an attacker to specify arbitrary file paths, potentially overwriting or creating files outside the restricted directory. This vulnerability has a CVSS 3.0 score of 9.8 (critical), reflecting its network attack vector, low complexity, no privileges or user interaction required, and high impact on confidentiality, integrity, and availability. The issue is resolved in version 2.0.0-beta.3.
Potential Impact
Successful exploitation allows an unauthenticated remote attacker to write files to arbitrary locations on the server filesystem, potentially leading to full system compromise including unauthorized data disclosure, modification, or denial of service. The vulnerability affects all versions of goshs before 2.0.0-beta.3.
Mitigation Recommendations
Upgrade to goshs version 2.0.0-beta.3 or later, where the path traversal vulnerability in the PUT upload handler is fixed by implementing proper path sanitization. Since no official patch link or advisory is provided, verify the version upgrade from the vendor's official source. Patch status is not explicitly confirmed beyond the stated fix version, so users should confirm the upgrade to 2.0.0-beta.3 or newer to remediate this issue.
CVE-2026-35392: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in patrickhener goshs
Description
CVE-2026-35392 is a critical path traversal vulnerability in patrickhener's goshs SimpleHTTPServer written in Go. Versions prior to 2. 0. 0-beta. 3 do not sanitize file paths during PUT uploads, allowing attackers to write files outside the intended directory. This can lead to full compromise of confidentiality, integrity, and availability. The vulnerability is fixed in version 2. 0. 0-beta. 3.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The goshs SimpleHTTPServer prior to version 2.0.0-beta.3 contains a path traversal vulnerability (CWE-22) in the PUT upload functionality implemented in httpserver/updown.go. The lack of path sanitization allows an attacker to specify arbitrary file paths, potentially overwriting or creating files outside the restricted directory. This vulnerability has a CVSS 3.0 score of 9.8 (critical), reflecting its network attack vector, low complexity, no privileges or user interaction required, and high impact on confidentiality, integrity, and availability. The issue is resolved in version 2.0.0-beta.3.
Potential Impact
Successful exploitation allows an unauthenticated remote attacker to write files to arbitrary locations on the server filesystem, potentially leading to full system compromise including unauthorized data disclosure, modification, or denial of service. The vulnerability affects all versions of goshs before 2.0.0-beta.3.
Mitigation Recommendations
Upgrade to goshs version 2.0.0-beta.3 or later, where the path traversal vulnerability in the PUT upload handler is fixed by implementing proper path sanitization. Since no official patch link or advisory is provided, verify the version upgrade from the vendor's official source. Patch status is not explicitly confirmed beyond the stated fix version, so users should confirm the upgrade to 2.0.0-beta.3 or newer to remediate this issue.
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: 69d41eee0a160ebd92dcdbdb
Added to database: 4/6/2026, 9:00:30 PM
Last enriched: 4/6/2026, 9:15:47 PM
Last updated: 4/6/2026, 10:47:32 PM
Views: 4
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.