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

CVE-2026-42945: Actively Exploited NGINX Rewrite Module Vulnerability Enables Worker Crashes and Possible RCE

CVE-2026-42945 is a heap-based buffer overflow vulnerability affecting NGINX Plus and NGINX Open Source. The flaw exists in the ngx_http_rewrite_module and can be triggered through…

Read more >

CVE-2026-42945

CVE Overload is Here: Why Regular Penetration Testing Matters More Than Ever

On 15 April 2026, NIST made a change that every security leader should pay attention to. The National Vulnerability Database is no longer trying to…

Read more >

CVE overload

CVE-2026-20182: Actively Exploited Cisco Catalyst SD-WAN Vulnerability Enables Admin Access

Cisco has disclosed a critical authentication bypass vulnerability affecting Cisco Catalyst SD-WAN Controller, formerly vSmart, and Cisco Catalyst SD-WAN Manager, formerly vManage. The vulnerability, tracked…

Read more >

cve-2026-20182-cisco-catalyst-sd-wan-admin-access

CVE-2026-44277 & CVE-2026-26083: Critical Fortinet Vulnerabilities Enable Unauthenticated Code Execution

Fortinet has released security updates for two critical vulnerabilities affecting FortiAuthenticator and FortiSandbox. Both vulnerabilities are rated Critical, carry a CVSS score of 9.1, and…

Read more >

cve-2026-44277, cve-2026-26083

CVE-2026-6973: Actively Exploited Ivanti EPMM Vulnerability Enables RCE

Ivanti has released security updates for Ivanti Endpoint Manager Mobile (EPMM) after confirming limited in-the-wild exploitation of CVE-2026-6973, a high-severity remote code execution vulnerability affecting…

Read more >

CVE-2026-6973

CVE-2026-0300: Actively Exploited Palo Alto PAN-OS Vulnerability Enables Root-Level RCE

Palo Alto Networks has disclosed a critical PAN-OS vulnerability, tracked as CVE-2026-0300, affecting the User-ID Authentication Portal, also known as the Captive Portal. The flaw…

Read more >

cve-2026-0300
Under Cyber Attack?

Fill out the form and we will contact you immediately.