CVE-2026-49340: 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. Prior to version 0.21.0, a logic error in `ServeCreateOrUpdatePlaylist` allows any authenticated Subsonic user (including non-admin) to write playlist M3U content to an attacker-controlled absolute filesystem path on the gonic host, and to create intermediate directories with `0o777` permissions. The bug is independent of CVE-2026-49338 and CVE-2026-49339. It is an unreachable guard clause combined with no path containment in `Store.Write`. Version 0.21.0 patches the issue.
AI Analysis
Technical Summary
The vulnerability arises from a logic error in the ServeCreateOrUpdatePlaylist function of gonic before version 0.21.0. An unreachable guard clause combined with lack of path containment checks in Store.Write allows authenticated Subsonic users to perform path traversal and write playlist files to attacker-controlled absolute paths on the server filesystem. Additionally, intermediate directories can be created with world-writable permissions (0o777). This issue is distinct from other CVEs affecting gonic and is resolved in version 0.21.0.
Potential Impact
Exploitation allows any authenticated user to write arbitrary playlist files to any location on the server filesystem where the gonic process has write permissions. This can lead to unauthorized file creation or modification, potentially enabling further attacks or service disruption. The creation of directories with 0o777 permissions increases the risk of unauthorized access or tampering by other users or processes on the host. The CVSS score of 8.1 reflects high impact due to integrity and availability consequences.
Mitigation Recommendations
Upgrade gonic to version 0.21.0 or later, where this path traversal vulnerability is patched. No other mitigations are indicated by the vendor advisory. Patch status is not explicitly stated but the fix is included in version 0.21.0.
CVE-2026-49340: 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. Prior to version 0.21.0, a logic error in `ServeCreateOrUpdatePlaylist` allows any authenticated Subsonic user (including non-admin) to write playlist M3U content to an attacker-controlled absolute filesystem path on the gonic host, and to create intermediate directories with `0o777` permissions. The bug is independent of CVE-2026-49338 and CVE-2026-49339. It is an unreachable guard clause combined with no path containment in `Store.Write`. Version 0.21.0 patches the issue.
CVSS v3.1
Score 8.1high
Affected software
pkg:golang/github.com/sentriz/gonicRun 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 from a logic error in the ServeCreateOrUpdatePlaylist function of gonic before version 0.21.0. An unreachable guard clause combined with lack of path containment checks in Store.Write allows authenticated Subsonic users to perform path traversal and write playlist files to attacker-controlled absolute paths on the server filesystem. Additionally, intermediate directories can be created with world-writable permissions (0o777). This issue is distinct from other CVEs affecting gonic and is resolved in version 0.21.0.
Potential Impact
Exploitation allows any authenticated user to write arbitrary playlist files to any location on the server filesystem where the gonic process has write permissions. This can lead to unauthorized file creation or modification, potentially enabling further attacks or service disruption. The creation of directories with 0o777 permissions increases the risk of unauthorized access or tampering by other users or processes on the host. The CVSS score of 8.1 reflects high impact due to integrity and availability consequences.
Mitigation Recommendations
Upgrade gonic to version 0.21.0 or later, where this path traversal vulnerability is patched. No other mitigations are indicated by the vendor advisory. Patch status is not explicitly stated but the fix is included in version 0.21.0.
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: 6a35966af198dc38c113831a
Added to database: 06/19/2026, 19:20:10 UTC
Last enriched: 06/26/2026, 21:45:40 UTC
Last updated: 08/01/2026, 19:18:00 UTC
Views: 75
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.