CVE-2026-26975·Python vulnerability
Music Assistant is an open-source media library manager that integrates streaming services with connected speakers. Versions 2.6.3 and below allow unauthenticated network-adjacent attackers to execute arbitrary code on affected installations. The music/playlists/update API allows users to bypass the .m3u extension enforcement and write files anywhere on the filesystem, which is exacerbated by the container running as root. This can be exploited to achieve Remote Code Execution by writing a malicious .pth file to the Python site-packages directory, which will execute arbitrary commands when Python loads. This issue has been fixed in version 2.7.0.
- Severity
- high
- Software
- Python
- Fixed in
- 2.7.0
- Published
- 2026-02-20
Affected versions
Until: 2.7.0
Fixed in: 2.7.0
How to fix this CVE
Update Music Assistant to version 2.7.0 or later to remediate the arbitrary file write vulnerability in the playlist API. This patch enforces strict file extension validation and prevents unauthorized filesystem access that could lead to code execution. If you are running Music Assistant in a containerized environment, rebuild your images with the patched version and redeploy immediately.
sudo dnf check-update python3-musicassistant && sudo dnf update python3-musicassistantDefensia detects this vulnerability
What an exploitation attempt looks like
Sample log line indicative of exploitation attempts:
POST /music/playlists/update.*Content-Disposition.*filename=.*\.pth|POST /music/playlists/update.*site-packages|POST /music/playlists/update.*\.\.\/(lib|usr|etc)WAF mitigation (if patching is not yet possible)
Add this rule to your WAF to block exploitation attempts while you schedule the patch.
Implement a WAF rule to block all POST requests to /music/playlists/update that contain file extensions other than .m3u in the filename parameter or Content-Disposition header; additionally reject requests containing path traversal sequences (../) or references to Python directories (site-packages, dist-packages).How to check if you are affected
- Run 'python3 -m pip show musicassistant' or check the application UI to retrieve the installed version number; confirm it is below 2.7.0
- Verify if the music/playlists/update API endpoint is exposed on the network by testing curl -X POST http://<target>:8181/music/playlists/update (default port may vary)
- Search application and system logs for POST requests to /music/playlists/update with file paths containing '.pth' extensions or references to site-packages directories
- After patching, re-run 'python3 -m pip show musicassistant' and confirm the version is 2.7.0 or higher; verify API file upload requests are now rejected for non-.m3u files
FAQ
What is CVE-2026-26975?
CVE-2026-26975 is a critical vulnerability in Music Assistant that allows unauthenticated attackers on the same network to upload arbitrary files and execute malicious Python code by exploiting insufficient input validation in the playlist update API.
Is CVE-2026-26975 being actively exploited?
No, this vulnerability is not currently listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are available, though the attack is relatively straightforward to execute.
What versions of Music Assistant are affected by CVE-2026-26975?
All versions of Music Assistant up to and including 2.6.3 are vulnerable; version 2.7.0 and later contain the fix.
How do I check if my server is vulnerable to CVE-2026-26975?
Execute 'python3 -m pip show musicassistant' to check the installed version; if it reports a version ≤ 2.6.3, your installation is vulnerable.
Does Defensia detect CVE-2026-26975?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Music Assistant or Python is installed on a monitored server, CVE-2026-26975 will appear in your dashboard with remediation steps.
Related Python CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-26975. Free for 1 server.
Get started free