Descrizione
Music Assistant is an open-source media library manager that integrates streaming services with connected speakers. Prior to 2.8.0, parse_arguments() passes the caller-controlled return_type parameter for config/core/get_value, config/providers/get_value, and config/players/get_value to parse_value() and Python eval() when resolving type parameters in music_assistant/helpers/api.py. Any authenticated user, regardless of role, can reach these commands through the WebSocket /ws endpoint or the REST JSON-RPC /api endpoint, causing arbitrary Python code to run with the Music Assistant server process privileges before command-handler validation, even if the request later fails. A default installation requires no special configuration, and compromise can expose secrets and configuration, alter library data, and control the application container. This issue is fixed in version 2.8.0.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.0, EPSS 0.3% (percentile 23).
Versioni da aggiornare
- music-assistant server: vulnerabile la versione
< 2.8.0→ installare l'ultima release supportata dal vendor.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Bloccare l'accesso esterno al componente, applicare regole WAF per payload di code/template injection e monitorare l'esecuzione di processi figli.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| music-assistant | server | < 2.8.0 | — |
Riferimenti
- Riferimentohttps://github.com/music-assistant/server/commit/c7408625bdaa08bdd4419255fccb1c7f82828d26
- Riferimentohttps://github.com/music-assistant/server/commit/d79ffd1e393eacc9d9402eaa26ff50d9618b247b
- Riferimentohttps://github.com/music-assistant/server/pull/3271
- Riferimentohttps://github.com/music-assistant/server/releases/tag/2.8.0
- Riferimentohttps://github.com/music-assistant/server/security/advisories/GHSA-cjp7-8r57-vc8f
- Riferimentohttps://github.com/music-assistant/server/security/advisories/GHSA-cjp7-8r57-vc8f