CWE
89
Advisory Published
CVE Published
Advisory Published
Updated

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

First published: Fri Aug 02 2024(Updated: )

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

Credit: cve@mitre.org cve@mitre.org

Affected SoftwareAffected VersionHow to fix
Djangoproject Django>=4.2<4.2.15
Djangoproject Django>=5.0<5.0.8
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
IBM Storage Defender - Resiliency Service<=2.0.0 - 2.0.7

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • 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.

  • 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.

  • 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.

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

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

  • 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203