SQL Injection Affecting github.com/navidrome/navidrome/persistence package, versions <0.53.0


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.05% (22nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMNAVIDROMENAVIDROMEPERSISTENCE-8068537
  • published22 Sept 2024
  • disclosed20 Sept 2024
  • creditLouis Nyffenegger

Introduced: 20 Sep 2024

CVE-2024-47062  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade github.com/navidrome/navidrome/persistence to version 0.53.0 or higher.

Overview

Affected versions of this package are vulnerable to SQL Injection due to multiple uses of LIKE for matching inputs without escaping. A low-privileged user can brute force other users' passwords, perform operations on the underlying database, and bypass username input for authentication by passing in % in place of a username.

PoC

GET /api/album?_end=36&_order=DESC&_sort=recently_added&_start=0&SELECT+*+FROM+USER--=123 HTTP/1.1

CVSS Scores

version 4.0
version 3.1