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…
EPSS 0.4%top 65%

CVE-2026-49340: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in sentriz gonic

0
High
VulnerabilityCVE-2026-49340cvecve-2026-49340cwe-22cwe-697cwe-732
Published: 06/19/2026 (06/19/2026, 19:11:20 UTC)
Source: CVE Database V5
Vendor/Project: sentriz
Product: 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

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

Affected software

github.com/sentriz/gonic
pkg:golang/github.com/sentriz/gonic
Affected versions
<0.21.0

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

AILast updated: 06/26/2026, 21:45:40 UTC

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.

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-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 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