SQL Injection Affecting django package, versions [,4.2.17)[5.0, 5.0.10)[5.1a1, 5.1.4)


Severity

Recommended
0.0
critical
0
10

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

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-8456316
  • published5 Dec 2024
  • disclosed4 Dec 2024
  • creditSeokchan Yoon

Introduced: 4 Dec 2024

NewCVE-2024-53908  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade django to version 4.2.17, 5.0.10, 5.1.4 or higher.

Overview

Affected versions of this package are vulnerable to SQL Injection via the django.db.models.fields.json.HasKey lookup on Oracle, if untrusted data is used as a lhs value. An attacker can manipulate SQL queries and access or alter database information.

Note: Applications that use the jsonfield.has_key lookup through the __ syntax are unaffected.

CVSS Scores

version 4.0
version 3.1