CVE-2026-35471: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in patrickhener goshs
CVE-2026-35471 is a critical path traversal vulnerability in patrickhener's goshs SimpleHTTPServer written in Go. Versions prior to 2. 0. 0-beta. 3 are affected due to a missing return statement after a path traversal check in the tdeleteFile() function. This flaw allows an attacker to bypass directory restrictions and potentially access or modify unauthorized files. The vulnerability has a CVSS score of 9. 8, indicating high impact on confidentiality, integrity, and availability. The issue is fixed starting from version 2. 0.
AI Analysis
Technical Summary
The vulnerability in goshs (prior to version 2.0.0-beta.3) arises from improper limitation of a pathname to a restricted directory (CWE-22). Specifically, the tdeleteFile() function fails to return immediately after detecting a path traversal attempt, allowing malicious input to bypass directory restrictions. This can lead to unauthorized file access or deletion. The vulnerability is resolved in version 2.0.0-beta.3 by correcting the control flow to properly enforce the path traversal check.
Potential Impact
Successful exploitation can lead to an attacker accessing, modifying, or deleting files outside the intended directory scope served by goshs. This compromises confidentiality, integrity, and availability of the system hosting the vulnerable server. The CVSS score of 9.8 reflects critical severity with network attack vector, no privileges required, and no user interaction needed.
Mitigation Recommendations
A fix is available in goshs version 2.0.0-beta.3, which properly enforces the path traversal check in the tdeleteFile() function. Users should upgrade to this version or later to remediate the vulnerability. No other official remediation or temporary workaround is documented. Patch status beyond the version update is not explicitly stated, so users should verify with the vendor for any additional guidance.
CVE-2026-35471: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in patrickhener goshs
Description
CVE-2026-35471 is a critical path traversal vulnerability in patrickhener's goshs SimpleHTTPServer written in Go. Versions prior to 2. 0. 0-beta. 3 are affected due to a missing return statement after a path traversal check in the tdeleteFile() function. This flaw allows an attacker to bypass directory restrictions and potentially access or modify unauthorized files. The vulnerability has a CVSS score of 9. 8, indicating high impact on confidentiality, integrity, and availability. The issue is fixed starting from version 2. 0.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in goshs (prior to version 2.0.0-beta.3) arises from improper limitation of a pathname to a restricted directory (CWE-22). Specifically, the tdeleteFile() function fails to return immediately after detecting a path traversal attempt, allowing malicious input to bypass directory restrictions. This can lead to unauthorized file access or deletion. The vulnerability is resolved in version 2.0.0-beta.3 by correcting the control flow to properly enforce the path traversal check.
Potential Impact
Successful exploitation can lead to an attacker accessing, modifying, or deleting files outside the intended directory scope served by goshs. This compromises confidentiality, integrity, and availability of the system hosting the vulnerable server. The CVSS score of 9.8 reflects critical severity with network attack vector, no privileges required, and no user interaction needed.
Mitigation Recommendations
A fix is available in goshs version 2.0.0-beta.3, which properly enforces the path traversal check in the tdeleteFile() function. Users should upgrade to this version or later to remediate the vulnerability. No other official remediation or temporary workaround is documented. Patch status beyond the version update is not explicitly stated, so users should verify with the vendor for any additional guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-02T20:49:44.453Z
- Cvss Version
- 3.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d4297c0a160ebd92e0093d
Added to database: 4/6/2026, 9:45:32 PM
Last enriched: 4/14/2026, 3:56:57 PM
Last updated: 5/22/2026, 8:34:41 PM
Views: 104
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.