# 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

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 29% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-19T19:11:20.305Z
- Modified: 2026-10-25T23:10:00.167Z
- Also known as: GHSA-4gxv-p5g5-j7w7, GO-2026-5827
- Weaknesses: CWE-22, CWE-697, CWE-732
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- sentriz gonic: < 0.21.0
- go.senan.xyz/gonic (Go): before 0.21.0

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`

## References

- <https://github.com/sentriz/gonic/security/advisories/GHSA-4gxv-p5g5-j7w7> (exploit, advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-49340> (advisory)
- <https://github.com/sentriz/gonic> (package)

## Sources

- CVE List: [CVE-2026-49340](https://www.cve.org/CVERecord?id=CVE-2026-49340), CVE Terms of Use, modified 2026-06-22
- GitHub Advisory Database: [GHSA-4gxv-p5g5-j7w7](https://github.com/advisories/GHSA-4gxv-p5g5-j7w7), CC-BY-4.0, modified 2026-07-07
- Go Vulnerability Database: [GO-2026-5827](https://pkg.go.dev/vuln/GO-2026-5827), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2026-49340](https://nvd.nist.gov/vuln/detail/CVE-2026-49340), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-49340 · Whole record: https://cve.day/CVE-2026-49340.json · Rebuilt by cve.day 2026-11-25T22:59:25.282Z
