Skip to main content
EPSS 0.3%top 77%

CVE-2026-66064: CWE-41: Improper Resolution of Path Equivalence in goshs-labs goshs

0
Medium
VulnerabilityCVE-2026-66064cvecve-2026-66064cwe-41cwe-863
Published: 07/28/2026 (07/28/2026, 22:12:04 UTC)
Source: CVE Database V5
Vendor/Project: goshs-labs
Product: goshs

Description

goshs is a feature-rich single-binary file server for red teamers and developers. Prior to 2.1.5, the httpserver/handler.go sendFile handler opened files using a cleaned path but derived the authorization filename from raw req.URL.Path, so a trailing slash could bypass .goshs ACL-file protection and block-list checks. This issue is fixed in version 2.1.5.

CVSS v3.1

Score 5.3medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Affected software

goshs-labs

goshs

Affected versions
<2.1.5

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/29/2026, 21:24:47 UTC

Technical Analysis

The goshs single-binary file server prior to version 2.1.5 contains a vulnerability in its sendFile handler (httpserver/handler.go) where files are opened using a cleaned path, but authorization checks use the raw req.URL.Path. This discrepancy allows an attacker to bypass .goshs ACL-file protection and block-list checks by appending a trailing slash to the URL path. This improper resolution of path equivalence is categorized under CWE-41 and CWE-863. The vulnerability has a CVSS 3.1 base score of 5.3 (medium severity). The issue is resolved in version 2.1.5.

Potential Impact

An attacker can bypass access control and block-list protections by manipulating the URL path with a trailing slash, potentially gaining unauthorized access to files that should be restricted. The confidentiality impact is limited to unauthorized file access, with no impact on integrity or availability reported.

Mitigation Recommendations

Upgrade to goshs version 2.1.5 or later, where this vulnerability is fixed. No other mitigation or temporary workaround is documented. Patch status is not explicitly stated in the input data but the fix is confirmed in version 2.1.5.

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-07-23T23:25:28.897Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6a692bbe9c2644c7f84c1498

Added to database: 07/28/2026, 22:22:54 UTC

Last enriched: 07/29/2026, 21:24:47 UTC

Last updated: 09/10/2026, 20:00:50 UTC

Views: 72

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