Open Nav
Sign Up

Django Releases Security Updates to Address SQL Injection Flaw (CVE-2024-42005, CVSS 9.8)

Bar Refael

August 11, 2024

The Django team has released security updates for versions 5.0.8 and 4.2.15 to address multiple vulnerabilities, including a critical SQL injection flaw tracked as CVE-2024-42005 (CVSS 9.8). This critical vulnerability impacts the QuerySet.values() and values_list() methods on models with a JSONField, potentially allowing attackers to execute arbitrary SQL commands and gain unauthorized access to sensitive data. All Django users are strongly advised to update their installations immediately to mitigate these risks.

CVE-2024-42005: Critical SQL Injection Vulnerability

Description:

  • The critical flaw, CVE-2024-42005, affects the QuerySet.values() and values_list() methods on Django models containing a JSONField. By crafting specific JSON object keys, an attacker can exploit this vulnerability to execute arbitrary SQL commands, leading to unauthorized data access and manipulation.

Other Vulnerabilities:

  • CVE-2024-41989 (CVSS 7.5): Affects the floatformat template filter, which can consume excessive memory when processing specific numeric inputs in scientific notation.
  • CVE-2024-41990 (CVSS 7.5): The urlize() and urlizetrunc() template filters are susceptible to DoS attacks through large inputs with specific character sequences.
  • CVE-2024-41991 (CVSS 7.5): Similar to CVE-2024-41990, this affects urlize(), urlizetrunc(), and the AdminURLFieldWidget widget, allowing DoS attacks via inputs with a large number of Unicode characters.

Affected Versions

The vulnerabilities impact the following Django versions:

  • Django main branch
  • Django 5.1 (release candidate status)
  • Django 5.0 (prior to 5.0.8)
  • Django 4.2 (prior to 4.2.15)

Mitigation and Recommendations

Patched Versions:

  • Django 5.0.8
  • Django 4.2.15

Immediate Action Required:

  • Upgrade to Django 5.0.8 or 4.2.15 immediately to mitigate the risks associated with these vulnerabilities.
  • Regularly review and audit the use of JSONFields in Django applications to ensure secure handling and processing of data.

Conclusion

The release of these security updates is crucial for maintaining the security and integrity of Django-based applications, particularly due to the critical SQL injection vulnerability. All users are urged to apply the patches without delay to protect against potential exploitation.

Stay Secure. Stay Informed.

OP Innovate Research Team.

Resources highlights

Cisco SD-WAN Manager Zero-Day CVE-2026-76504 Exploited for Admin Access

Cisco has released emergency security updates for a critical authentication bypass vulnerability affecting Cisco Catalyst SD-WAN Manager, formerly known as vManage. Tracked as CVE-2026-76504, the…

Read more >

cisco sd-wan_cve-2026-76504

Two Citrix NetScaler RCE Zero-Days Exploited in the Wild: CVE-2026-88771 & CVE-2026-88772

Two critical zero-day vulnerabilities affecting Citrix NetScaler ADC and NetScaler Gateway are being actively exploited to compromise vulnerable appliances. Tracked as CVE-2026-88771 and CVE-2026-88772, both…

Read more >

citrix netscaler_cve-2026-88771-88772

Critical cPanel Flaw CVE-2026-87899 Enables Root Code Execution

A critical vulnerability in cPanel & WHM can allow an authenticated cPanel user to escalate privileges and execute arbitrary code as the root user, potentially…

Read more >

cpanel_cve-2026-87899

WordPress Click2Shell Chains Forced Theme Installation to Remote Code Execution

A newly disclosed WordPress vulnerability chain dubbed Click2Shell can allow an unauthenticated attacker to turn a single malicious link opened by a logged-in WordPress administrator…

Read more >

wordpress click2shell

Cisco ISE Zero-Day CVE-2026-76460 Exploited for Authentication Bypass and Root Access

Cisco has disclosed a maximum-severity vulnerability in Cisco Identity Services Engine (ISE) that is being actively exploited in the wild. Tracked as CVE-2026-76460, the vulnerability…

Read more >

cisco ise_cve-2026-76460

Critical Check Point VPN RCE Flaws CVE-2026-85102 and CVE-2026-85103 Face Imminent Exploitation Risk

Check Point has released security updates for two critical vulnerabilities affecting its VPN infrastructure that could allow unauthenticated remote attackers to execute arbitrary code on…

Read more >

check point_cve-2026-85102-cve-2026-85103
Under Cyber Attack?

Fill out the form and we will contact you immediately.