Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-35471: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in patrickhener goshs

0
Critical
VulnerabilityCVE-2026-35471cvecve-2026-35471cwe-22
Published: Mon Apr 06 2026 (04/06/2026, 21:38:27 UTC)
Source: CVE Database V5
Vendor/Project: patrickhener
Product: 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

AILast updated: 04/14/2026, 15:56:57 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses