PT-2024-5584

CVE-2024-42005

·

Published

2024-08-06

·

Updated

2026-10-31

Description by

CVSS 2.0
10
Critical
MetricsAV:N/AC:L/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions Django versions 4.2 through 4.2.14 Django versions 5.0 through 5.0.7
Description The issue is related to SQL injection in the QuerySet.values() and values list() methods on models with a JSONField. This vulnerability can be exploited by passing a crafted JSON object key as an argument, allowing an attacker to execute arbitrary SQL queries. The estimated number of potentially affected devices worldwide is over 5.4 million services.
Recommendations For Django versions 4.2 through 4.2.14, upgrade to Django 4.2.15. For Django versions 5.0 through 5.0.7, upgrade to Django 5.0.8. As a temporary workaround, consider restricting the use of the QuerySet.values() and values list() methods on models with a JSONField until a patch is available.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-PV4P-CWWG-4RPH
ALT-PU-2024-15283
ALT-PU-2025-10176
BIT-DJANGO-2024-42005
CLEANSTART-2024-HU15662
MGASA-2025-0039
OESA-2024-2002
OESA-2024-2003
OESA-2024-2004
OESA-2024-2036
OESA-2024-2280
OPENSUSE-SU-2024:0272-1
OPENSUSE-SU-2024:14247-1
OPENSUSE-SU-2024:14248-1
OPENSUSE-SU-2026:10005-1
OPENSUSE-SU-2026:11235-1
OPENSUSE-SU-2026:11248-1
OPENSUSE-SU-2026:11270-1
PYSEC-2024-70
RHSA-2024:6428
RHSA-2024:8906
RHSA-2025:1335
SUSE-SU-2024:2816-1
SUSE-SU-2024:2817-1
USN-6946-1
Found an issue in the description? Have something to add? Feel free to write us 👾