SQL Injection Affecting django package, versions [,4.2.15)[5.0,5.0.8)


Severity

Recommended
0.0
critical
0
10

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

Threat Intelligence

EPSS
0.05% (23rd 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-PYTHON-DJANGO-7642814
  • published7 Aug 2024
  • disclosed6 Aug 2024
  • creditEyal Gabay of EyalSec

Introduced: 6 Aug 2024

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

How to fix?

Upgrade django to version 4.2.15, 5.0.8 or higher.

Overview

Affected versions of this package are vulnerable to SQL Injection via the QuerySet.values() and values_list() methods on models with a JSONField. An attacker can exploit this vulnerability through column aliases by using a maliciously crafted JSON object object key as a passed *arg.

CVSS Scores

version 4.0
version 3.1