V4: OpenList: Arbitrary File Read via Path Prefix Confusion in Share Creation API
OpenList v4 contains an authorization bypass vulnerability in its file sharing API due to improper path prefix validation. An authenticated user with sharing privileges can create share links to files outside their assigned base directory by exploiting a flawed string prefix check that does not consider directory separators. This allows unauthorized read access to arbitrary files in sibling directories, breaking tenant/user isolation. The issue affects versions prior to 4.2.4. The vulnerability enables horizontal privilege escalation by exposing files from other users or internal paths. No known exploits in the wild have been reported.
AI Analysis
Technical Summary
The vulnerability arises from the use of a simple string prefix check (strings.HasPrefix) to verify that a requested file path is within a user's assigned BasePath during share creation or update. Because this check does not account for directory separators, an attacker with a BasePath of '/base' can specify a path like '/base2/secret.txt', which incorrectly passes the prefix check. Consequently, the attacker can create share links to files outside their authorized directory. The share download and listing handlers serve these files without revalidating directory scope, enabling unauthorized access. The flaw is due to CWE-639 (Authorization Bypass Through User-Controlled Key).
Potential Impact
This vulnerability allows an attacker with legitimate sharing permissions to bypass directory restrictions and access arbitrary files outside their assigned base directory. It breaks data isolation guarantees by enabling unauthorized read access to sensitive files belonging to other tenants or system areas. The impact is limited to confidentiality (read access), with no integrity or availability impact reported. The severity is moderate due to the requirement of authenticated user privileges and the lack of remote unauthenticated exploitation.
Mitigation Recommendations
No official patch or fix is currently documented. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Recommended mitigation includes replacing the flawed strings.HasPrefix check with a canonical path containment validation that is separator-aware, such as verifying that the target path equals the base path or starts with the base path plus a directory separator. Implement a centralized utility function to consistently validate path containment across all share creation, update, and access handlers to prevent regressions.
V4: OpenList: Arbitrary File Read via Path Prefix Confusion in Share Creation API
Description
OpenList v4 contains an authorization bypass vulnerability in its file sharing API due to improper path prefix validation. An authenticated user with sharing privileges can create share links to files outside their assigned base directory by exploiting a flawed string prefix check that does not consider directory separators. This allows unauthorized read access to arbitrary files in sibling directories, breaking tenant/user isolation. The issue affects versions prior to 4.2.4. The vulnerability enables horizontal privilege escalation by exposing files from other users or internal paths. No known exploits in the wild have been reported.
CVSS v3.1
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises from the use of a simple string prefix check (strings.HasPrefix) to verify that a requested file path is within a user's assigned BasePath during share creation or update. Because this check does not account for directory separators, an attacker with a BasePath of '/base' can specify a path like '/base2/secret.txt', which incorrectly passes the prefix check. Consequently, the attacker can create share links to files outside their authorized directory. The share download and listing handlers serve these files without revalidating directory scope, enabling unauthorized access. The flaw is due to CWE-639 (Authorization Bypass Through User-Controlled Key).
Potential Impact
This vulnerability allows an attacker with legitimate sharing permissions to bypass directory restrictions and access arbitrary files outside their assigned base directory. It breaks data isolation guarantees by enabling unauthorized read access to sensitive files belonging to other tenants or system areas. The impact is limited to confidentiality (read access), with no integrity or availability impact reported. The severity is moderate due to the requirement of authenticated user privileges and the lack of remote unauthenticated exploitation.
Mitigation Recommendations
No official patch or fix is currently documented. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Recommended mitigation includes replacing the flawed strings.HasPrefix check with a canonical path containment validation that is separator-aware, such as verifying that the target path equals the base path or starts with the base path plus a directory separator. Implement a centralized utility function to consistently validate path containment across all share creation, update, and access handlers to prevent regressions.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-86cx-wwf4-phq4
- Osv Schema Version
- 1.4.0
- Aliases
- []
- Ecosystems
- ["Go"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a6542199c2644c7f8087e83
Added to database: 07/25/2026, 23:09:13 UTC
Last enriched: 07/25/2026, 23:50:07 UTC
Last updated: 07/26/2026, 03:47:29 UTC
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.
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.