CVE-2022-23857 SQL injection in github.com/navidrome/navidrome

Medium 6.5 Published Updated

An authenticated user can exploit SQL injection in Smart Playlists to extract sensitive database information, including encrypted passwords.

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-2022-23857?

CVE-2022-23857 is a medium-severity SQL injection vulnerability in n/a, published on 24 Jan 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

model/criteria/criteria.go in Navidrome before 0.47.5 is vulnerable to SQL injection attacks when processing crafted Smart Playlists. An authenticated user could abuse this to extract arbitrary data from the database, including the user table (which contains sensitive information such as the users' encrypted passwords).

Weakness: CWE-89

Which versions are affected by CVE-2022-23857?

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.47.5
github.com/navidrome/navidrome GoAll versions0.47.5
github.com/navidrome/navidrome GoAll versions0.47.5

Products include Navidrome Navidrome.

How do I fix CVE-2022-23857?

Upgrade github.com/navidrome/navidrome to 0.47.5 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-2022-23857 being exploited?

There is no known exploitation of CVE-2022-23857 in the wild and no public exploit code.

Sources

Also known as GHSA-pmcr-2rhp-36hr, GO-2022-0302.

Is CVE-2022-23857 in your software?

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

Check your SBOMs for free