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…

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: Fri Jun 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/19/2026, 19:35:02 UTC

Technical Analysis

The vulnerability CVE-2026-49340 affects sentriz gonic versions before 0.21.0. It is caused by improper limitation of a pathname to a restricted directory (CWE-22) due to a logic error in the ServeCreateOrUpdatePlaylist function. Authenticated users can exploit this to write playlist files to arbitrary absolute paths on the server filesystem and create directories with insecure permissions (0o777). This occurs because a guard clause intended to prevent such writes is unreachable, and the Store.Write method does not enforce path containment. This vulnerability is distinct from CVE-2026-49338 and CVE-2026-49339. The issue is fixed in version 0.21.0.

Potential Impact

Exploitation allows any authenticated Subsonic user to write arbitrary playlist M3U content to any absolute filesystem path on the gonic host, potentially overwriting or creating files outside intended directories. Additionally, attackers can create intermediate directories with full permissions (0o777), increasing the risk of unauthorized file access or modification. This can lead to integrity and availability impacts on the host system. Confidentiality impact is not indicated. The CVSS v3.1 score is 8.1 (High), reflecting network attack vector, low attack complexity, low privileges required, no user interaction, unchanged scope, no confidentiality impact, but high integrity and availability impacts.

Mitigation Recommendations

A fix is available in sentriz gonic version 0.21.0, which patches this path traversal vulnerability. Users should upgrade to version 0.21.0 or later to remediate this issue. No other mitigation or temporary workaround is indicated in the available data.

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: 6/19/2026, 7:20:10 PM

Last enriched: 6/19/2026, 7:35:02 PM

Last updated: 6/20/2026, 12:06:54 AM

Views: 7

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