navidrome
Navidrome 0.52.5 music server, exposed on host port 4533, with bind-mounted music and data directories.
docker-compose.yml:4-10Multiple SQL Injections and ORM Leak in navidrome
CVE-2024-47062 has a selected CVSS score of 9.4 (critical); EIP currently links 1 repository PoC, 1 Nuclei template, and 1 lab environment.
Navidrome is an open source web-based music collection server and streamer. Navidrome automatically adds parameters in the URL to SQL queries. This can be exploited to access information by adding parameters like `password=...` in the URL (ORM Leak). Furthermore, the names of the parameters are not properly escaped, leading to SQL Injections. Finally, the username is used in a `LIKE` statement, allowing people to log in with `%` instead of their username. When adding parameters to the URL, they are automatically included in an SQL `LIKE` statement (depending on the parameter's name). This allows attackers to potentially retrieve arbitrary information. For example, attackers can use the following request to test whether some encrypted passwords start with `AAA`. This results in an SQL query like `password LIKE 'AAA%'`, allowing attackers to slowly brute-force passwords. When adding parameters to the URL, they are automatically added to an SQL query. The names of the parameters are not properly escaped. This behavior can be used to inject arbitrary SQL code (SQL Injection). These vulnerabilities can be used to leak information and dump the contents of the database and have been addressed in release version 0.53.0. Users are advised to upgrade. There are no known workarounds for this vulnerability.
| Product | Source | Version range | Status |
|---|---|---|---|
navidromeBrowse navidrome / navidromeDefault status: unknown | CVE List | 0.53.0 | affected |
| < 0.53.0 | affected | ||
github.com/navidrome/navidromeBrowse Go / github.com/navidrome/navidrome | GitHub Advisory | Before 0.53.0 · Fixed in 0.53.0 | affected |
A Docker Compose environment running Navidrome 0.52.5, accompanied by Python scripts that exploit CVE-2024-47062 via SQL injection to extract user credentials and forge JWT tokens.
docker-compose.yml:1-11README.md:1-3exploit.py:1-108The README explicitly states 'CVE-2024-47062 POC', and the included scripts demonstrate SQL injection and JWT forgery against the Navidrome service defined in the Compose file.
README.md:1exploit.py:1-108Navidrome 0.52.5 music server, exposed on host port 4533, with bind-mounted music and data directories.
docker-compose.yml:4-10Authenticates to Navidrome, then performs UNION-based SQL injection on the /api/radio endpoint to dump user and property tables, and decrypts extracted passwords.
exploit.py:1-108Decrypts base64-encoded AES-GCM ciphertext using a hardcoded key, used by exploit.py to reveal plaintext passwords.
decryptor.py:1-33Creates a forged JWT using a secret extracted from the property table, enabling privilege escalation.
create_jwt.py:1-16Supported by supplied evidence
The exploit.py script demonstrates SQL injection against Navidrome 0.52.5, consistent with the CVE description, and the README explicitly labels the repository as a POC for this CVE.
README.md:1exploit.py:20-28docker-compose.yml:1-11exploit.py:72-74exploit.py:1-4decryptor.py:4-5docker-compose.yml:1-11exploit.py:72-108create_jwt.py:3-15All scripts target the local Navidrome container via the documented port mapping. No evidence of host escape, external connectivity, persistence, credential exfiltration, or destructive actions beyond the intended lab target.
exploit.py:1-108docker-compose.yml:1-11This review is limited to the supplied lab evidence packet. It does not assert that the environment runs, reproduces a vulnerability, or is safe to execute. Contract: eip-docker-lab-analysis-v1.
Navidrome is an open source web-based music collection server and streamer. Navidrome automatically adds parameters in the URL to SQL queries. This can be exploited to access information by adding parameters like `password=...` in the URL (ORM Leak). Furthermore, the names of the parameters are not properly escaped, leading to SQL Injections. Finally, the username is used in a `LIKE` statement, allowing people to log in with `%` instead of their username. When adding parameters to the URL, they are automatically included in an SQL `LIKE` statement (depending on the parameter's name). This allows attackers to potentially retrieve arbitrary information. For example, attackers can use the following request to test whether some encrypted passwords start with `AAA`. This results in an SQL query like `password LIKE 'AAA%'`, allowing attackers to slowly brute-force passwords. When adding parameters to the URL, they are automatically added to an SQL query. The names of the parameters are not properly escaped. This behavior can be used to inject arbitrary SQL code (SQL Injection). These vulnerabilities can be used to leak information and dump the contents of the database and have been addressed in release version 0.53.0. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Authenticated attackers can exploit SQL injection to extract sensitive database information including encrypted passwords.
Update Navidrome to version 0.53.0 or later.
Source: ProjectDiscovery