CVE-2023-51442 Authentication bypass vulnerability in navidrome's subsonic endpoint

High 8.6 Published Updated

Attacker can bypass authentication in Navidrome's Subsonic endpoint using a hardcoded JWT key, gaining unauthorized access to user accounts and data.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-51442?

CVE-2023-51442 is a high-severity authentication bypass vulnerability in navidrome, published on 21 Dec 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Navidrome is an open source web-based music collection server and streamer. A security vulnerability has been identified in navidrome's subsonic endpoint, allowing for authentication bypass. This exploit enables unauthorized access to any known account by utilizing a JSON Web Token (JWT) signed with the key "not so secret". The vulnerability can only be exploited on instances that have never been restarted. Navidrome supports an extension to the subsonic authentication scheme, where a JWT can be provided using a `jwt` query parameter instead of the traditional password or token and salt (corresponding to resp. the `p` or `t` and `s` query parameters). This authentication bypass vulnerability potentially affects all instances that don't protect the subsonic endpoint `/rest/`, which is expected to be most instances in a standard deployment, and most instances in the reverse proxy setup too (as the documentation mentions to leave that endpoint unprotected). This issue has been patched in version 0.50.2.

Weakness: CWE-287

Which versions are affected by CVE-2023-51442?

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

Products include Navidrome Navidrome.

How do I fix CVE-2023-51442?

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

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2023-51442 being exploited?

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

Sources

Also known as GHSA-wq59-4q6r-635r, GO-2023-2414.

Is CVE-2023-51442 in your software?

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

Check your SBOMs for free