{"id":"CVE-2026-49340","state":"PUBLISHED","title":"gonic has arbitrary file write in createPlaylist: any authenticated user can write playlist M3U content to attacker-controlled path on the host","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.","publishedAt":"2026-06-19T19:11:20.305Z","updatedAt":"2026-06-22T17:50:57.575Z","severity":{"score":8.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["sentriz gonic"],"affected":[{"vendor":"sentriz","product":"gonic","versions":[{"version":"< 0.21.0","status":"affected"}]}],"references":["https://github.com/sentriz/gonic/security/advisories/GHSA-4gxv-p5g5-j7w7"],"weaknesses":["CWE-22","CWE-697","CWE-732"],"ingestedAt":"2026-10-29T20:12:07.131Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/49xxx/CVE-2026-49340.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-49340","state":"PUBLISHED","datePublished":"2026-06-19T19:11:20.305Z","dateUpdated":"2026-06-22T17:50:57.575Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-05-29T14:35:45.902Z"},"containers":{"cna":{"title":"gonic has arbitrary file write in createPlaylist: any authenticated user can write playlist M3U content to attacker-controlled path on the host","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"sentriz","product":"gonic","versions":[{"version":"< 0.21.0","status":"affected"}]}],"references":[{"url":"https://github.com/sentriz/gonic/security/advisories/GHSA-4gxv-p5g5-j7w7","name":"https://github.com/sentriz/gonic/security/advisories/GHSA-4gxv-p5g5-j7w7","tags":["x_refsource_CONFIRM"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.1,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-697","lang":"en","description":"CWE-697: Incorrect Comparison","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-732","lang":"en","description":"CWE-732: Incorrect Permission Assignment for Critical Resource","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-06-19T19:11:20.305Z"},"source":{"advisory":"GHSA-4gxv-p5g5-j7w7","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/sentriz/gonic/security/advisories/GHSA-4gxv-p5g5-j7w7","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-06-22T17:50:48.480604Z","id":"CVE-2026-49340","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-06-22T17:50:57.575Z"}}]}}}