CVE-2024-53908

CRITICALCVSS 9.8/10EPSS 1.40%

Last modified

CVE-2024-53908 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. An issue was discovered in Django 5.1 before 5.1.4, 5.0 before 5.0.10, and 4.2 before 4.2.17. Direct usage of the django.db.models.fields.json.HasKey lookup, when an Oracle database is used, is subject to SQL injection if untrusted data is used as an lhs value. EPSS estimates a 1.40% chance of exploitation in the next 30 days.

Description

An issue was discovered in Django 5.1 before 5.1.4, 5.0 before 5.0.10, and 4.2 before 4.2.17. Direct usage of the django.db.models.fields.json.HasKey lookup, when an Oracle database is used, is subject to SQL injection if untrusted data is used as an lhs value. (Applications that use the jsonfield.has_key lookup via __ are unaffected.)

Metrics

CVSS 3.1
9.8/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS Probability
1.40%

69.0th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
DjangoprojectDjango>= 4.2, < 4.2.17
DjangoprojectDjango>= 5.0, < 5.0.10
DjangoprojectDjango>= 5.1, < 5.1.4

References

Timeline

Published
Last Modified
Status
Analyzed

Frequently Asked Questions

What is CVE-2024-53908?
An issue was discovered in Django 5.1 before 5.1.4, 5.0 before 5.0.10, and 4.2 before 4.2.17. Direct usage of the django.db.models.fields.json.HasKey lookup, when an Oracle database is used, is subject to SQL injection if untrusted data is used as an lhs value. (Applications that use the jsonfield.has_key lookup via __ are unaffected.)
How severe is CVE-2024-53908?
CVE-2024-53908 has a CVSS score of 9.8/10 (CRITICAL severity). The EPSS model estimates a 1.40% probability of exploitation in the next 30 days.
How do I fix CVE-2024-53908?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2024-53908?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST