CVE-2024-42005: Django CVE-2024-41989, CVE-2024-41990, CVE-2024-41991, and CVE-2024-42005

Published Aug 2, 2024
·
Updated

An issue was discovered in Django 5.0 before 5.0.8 and 4.2 before 4.2.15. QuerySet.values() and valueslist() methods on models with a JSONField are subject to SQL injection in column aliases via a crafted JSON object key as a passed arg.

Other sources

Description: QuerySet.values() and QuerySet.valueslist() methods on models with a JSONField were subject to SQL injection in column aliases, via a crafted JSON object key as a passed arg.

Affected versions =================

Django main development branch Django 5.1 (currently at release candidate status) Django 5.0 Django 4.2

Red Hat

Django is vulnerable to SQL injection. A remote attacker could send specially crafted SQL statements to the QuerySet.values() and valueslist() method, which could allow the attacker to view, add, modify or delete information in the back-end database.

IBM

Affected Software

6 affected componentsFixes available
pip/Django>=4.2<4.2.15
4.2.15
pip/Django>=5.0<5.0.8
5.0.8
debian/python-django<=2:2.2.28-1~deb11u2, <=3:3.2.19-1+deb12u1
3:4.2.16-1
djangoproject Django>=4.2<4.2.15
djangoproject Django>=5.0<5.0.8
IBM Storage Defender - Resiliency Service<=2.0.0 - 2.0.7

Event History

Aug 2, 2024
Data Sourced
via Red Hat·02:10 AM
DescriptionSeverityAffected Software
Aug 7, 2024
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·03:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·03:30 PM
Sep 15, 2024
Data Sourced
via Ubuntu·07:32 PM
RemedyDescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2024-42005?

CVE-2024-42005 has been rated as a high severity vulnerability due to its potential for SQL injection.

2

How do I fix CVE-2024-42005?

To fix CVE-2024-42005, upgrade Django to version 4.2.15 or 5.0.8 or later.

3

What software is affected by CVE-2024-42005?

CVE-2024-42005 affects Django versions 5.0 through 5.0.7 and 4.2 through 4.2.14.

4

What methods in Django are vulnerable in CVE-2024-42005?

The QuerySet.values() and values_list() methods are vulnerable in CVE-2024-42005.

5

Is CVE-2024-42005 an issue with JSONField in Django?

Yes, CVE-2024-42005 specifically involves SQL injection vulnerabilities in JSONField column aliases.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203