SQL Injection Affecting github.com/navidrome/navidrome/model/criteria package, versions <0.47.5


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.06% (31st 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-GITHUBCOMNAVIDROMENAVIDROMEMODELCRITERIA-2359252
  • published24 Jan 2022
  • disclosed24 Jan 2022
  • creditDePierre

Introduced: 24 Jan 2022

CVE-2022-23857  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade github.com/navidrome/navidrome/model/criteria to version 0.47.5 or higher.

Overview

github.com/navidrome/navidrome/model/criteria is a package that implements a Criteria API based on Masterminds/squirrel.

Affected versions of this package are vulnerable to SQL Injection due to missing sanitization in the c Criteria function in model/criteria/criteria.go, when processing crafted Smart Playlists.

An authenticated user could abuse this to extract arbitrary data from the database, including the user table.

CVSS Base Scores

version 3.1