CVE-2026-49339: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in sentriz gonic
gonic is a music streaming server / free-software subsonic server API implementation. The maintainer's fix in commit `6dd71e6a3c966867ef8c900d359a7df75789f410` added an ownership check based on `playlist.UserID`. However, `playlist.UserID` is derived from the first path segment of the attacker-controlled playlist ID, with no path containment on the resolved file path. Any authenticated Subsonic user can therefore bypass the ownership check and read any other user's playlist, delete any other user's playlist, and probe arbitrary file paths on the host for existence/readability. This is a bypass of the boundary the `6dd71e6` fix is trying to enforce; it is closely related to the original GONIC-1 IDOR but uses a different primitive (path traversal in the `id` parameter rather than direct cross-user access). Commit 0824bed88f6bbc490ba28bf09d28e5dfeb07b445 in version 0.21.0 fixes the issue.
AI Analysis
Technical Summary
The vulnerability arises because the ownership check in gonic relies on playlist.UserID, which is derived from the first path segment of the playlist ID controlled by the attacker. Since there is no path containment validation on the resolved file path, an authenticated user can exploit path traversal to access or delete other users' playlists and probe arbitrary file paths. This bypasses the intended boundary enforcement introduced in a prior fix. The issue is addressed by commit 0824bed88f6bbc490ba28bf09d28e5dfeb07b445 in gonic version 0.21.0.
Potential Impact
An authenticated Subsonic user can bypass playlist ownership restrictions to read or delete playlists belonging to other users. Additionally, the attacker can probe arbitrary file paths on the server for existence or readability, potentially exposing sensitive information. The vulnerability does not allow remote unauthenticated access but does enable significant unauthorized access and information disclosure within the authenticated user context.
Mitigation Recommendations
Upgrade gonic to version 0.21.0 or later, where this vulnerability is fixed. The fix includes proper path containment checks preventing path traversal attacks on playlist IDs. No other mitigation is indicated by the vendor advisory.
CVE-2026-49339: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in sentriz gonic
Description
gonic is a music streaming server / free-software subsonic server API implementation. The maintainer's fix in commit `6dd71e6a3c966867ef8c900d359a7df75789f410` added an ownership check based on `playlist.UserID`. However, `playlist.UserID` is derived from the first path segment of the attacker-controlled playlist ID, with no path containment on the resolved file path. Any authenticated Subsonic user can therefore bypass the ownership check and read any other user's playlist, delete any other user's playlist, and probe arbitrary file paths on the host for existence/readability. This is a bypass of the boundary the `6dd71e6` fix is trying to enforce; it is closely related to the original GONIC-1 IDOR but uses a different primitive (path traversal in the `id` parameter rather than direct cross-user access). Commit 0824bed88f6bbc490ba28bf09d28e5dfeb07b445 in version 0.21.0 fixes the issue.
CVSS v3.1
Score 7.1high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises because the ownership check in gonic relies on playlist.UserID, which is derived from the first path segment of the playlist ID controlled by the attacker. Since there is no path containment validation on the resolved file path, an authenticated user can exploit path traversal to access or delete other users' playlists and probe arbitrary file paths. This bypasses the intended boundary enforcement introduced in a prior fix. The issue is addressed by commit 0824bed88f6bbc490ba28bf09d28e5dfeb07b445 in gonic version 0.21.0.
Potential Impact
An authenticated Subsonic user can bypass playlist ownership restrictions to read or delete playlists belonging to other users. Additionally, the attacker can probe arbitrary file paths on the server for existence or readability, potentially exposing sensitive information. The vulnerability does not allow remote unauthenticated access but does enable significant unauthorized access and information disclosure within the authenticated user context.
Mitigation Recommendations
Upgrade gonic to version 0.21.0 or later, where this vulnerability is fixed. The fix includes proper path containment checks preventing path traversal attacks on playlist IDs. No other mitigation is indicated by the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-29T14:35:45.902Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a358c5cf198dc38c1f2fbbe
Added to database: 06/19/2026, 18:37:16 UTC
Last enriched: 06/26/2026, 19:20:16 UTC
Last updated: 08/02/2026, 19:17:59 UTC
Views: 87
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.