CVE-2024-47062 Multiple SQL Injections and ORM Leak in navidrome

Critical 9.4 Published Updated

Attackers can inject SQL or leak data via URL parameters to dump the database and brute-force passwords in Navidrome.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-47062?

CVE-2024-47062 is a critical SQL injection vulnerability in navidrome, published on 20 Sep 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

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.

Weakness: CWE-89

Which versions are affected by CVE-2024-47062?

3 open source packages ship an affected version, including github.com/navidrome/navidrome. It affects 1 product.

PackageAffectedFixed in
github.com/navidrome/navidrome GoAll versions0.53.0
github.com/navidrome/navidrome GoAll versions0.53.0
github.com/navidrome/navidrome GoAll versions0.53.0

Products include Navidrome Navidrome.

How do I fix CVE-2024-47062?

Upgrade github.com/navidrome/navidrome to 0.53.0 or later.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2024-47062 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-47062 exists.

Public exploit code: 1 Nuclei template and 1 proofs of concept on GitHub.

Sources

Also known as GHSA-58vj-cv5w-v4v6, GO-2024-3153.

Is CVE-2024-47062 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free