CVE-2026-49340
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedgonic 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceA logic error in gonic's `ServeCreateOrUpdatePlaylist` function allows any authenticated Subsonic user to write playlist M3U content to an attacker-controlled absolute filesystem path. The vulnerability stems from an unreachable guard clause combined with missing path containment checks in `Store.Write`, enabling arbitrary file writes and creation of intermediate directories with 0o777 permissions.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- 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
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify gonic installation and versionCheck the gonic binary or service version using 'gonic --version', 'gonic -v', checking the executable file metadata, or reviewing the installed package version (e.g., via package manager)Affected if The installed version is lower than 0.21.0 (e.g., 0.20.0, 0.19.x, or earlier)
-
Confirm Subsonic API is exposedCheck if the gonic server is listening on its Subsonic API port (default 4747) by reviewing server configuration or running 'netstat -tlnp' or 'ss -tlnp' to find listening servicesAffected if The Subsonic API endpoint is accessible and accepting connections
-
Verify Subsonic authentication is enabledReview gonic configuration files for authentication settings, typically in a config.yaml or config.json file, or check if the server requires Subsonic API credentials for playlist endpointsAffected if Authentication is enabled but allows any valid Subsonic user to authenticate (default configuration)
-
Check playlist write functionalityReview gonic source code or documentation to confirm the ServeCreateOrUpdatePlaylist endpoint exists and is accessible via the Subsonic API at /rest/createPlaylist.view or similarAffected if The playlist creation/update endpoint is available and responds to authenticated requests
A user is affected if running gonic version lower than 0.21.0 with the Subsonic API exposed and accessible to authenticated users, allowing them to write playlist content to arbitrary filesystem paths.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade gonic to version 0.21.0 or later, which contains the patch addressing the path containment issue in the playlist handling code.
0.21.0
- 1. Identify the current gonic version installed (e.g., check via binary version flag or package manager)
- 2. Download gonic version 0.21.0 from the official GitHub repository releases
- 3. Replace the existing gonic binary with version 0.21.0
- 4. Restart the gonic service to load the updated binary
- 5. Verify the upgrade was successful by checking the version number
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation3.0 h
- Testing3.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,800.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-49340 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-49340 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data