CVSS 3.1
7.3 highCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:LHigh (7.3) in djangoproject django. EPSS 1.5% estimated probability of exploitation activity in the next 30 days. Fixed in django 4.2.15, 5.0.8.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:Ldjango (PyPI): fixed in 5.0.8, 4.2.15Explain CVE-2024-42005 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-42005?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-42005?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-42005 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| djangoproject:django | from 4.2 before 4.2.15 |
| djangoproject:django | from 5.0 before 5.0.8 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-pv4p-cwwg-4rph | PyPI | django | >=5.0 <5.0.8 | 5.0.8 |
| GHSA-pv4p-cwwg-4rph | PyPI | django | >=4.2 <4.2.15 | 4.2.15 |
| PYSEC-2024-70 | PyPI | django | >=5.0 <5.0.8 >=4.2 <4.2.15 | 5.0.8, 4.2.15 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 11 | python-django | 2:2.2.28-1~deb11u11 | DLA-4458-1 |
| Debian | 12 | python-django | 3:3.2.25-0+deb12u1 | DEBIAN-CVE-2024-42005 DSA-6136-1 |
| Debian | 13, 14 | python-django | 3:4.2.15-1 | DEBIAN-CVE-2024-42005 |
| Ubuntu | 20.04:LTS | python-django | 2:2.2.12-1ubuntu0.24 | USN-6946-1 |
| Ubuntu | 22.04:LTS | python-django | 2:3.2.12-2ubuntu1.13 | UBUNTU-CVE-2024-42005 USN-6946-1 |
| Ubuntu | 24.04:LTS | python-django | 3:4.2.11-1ubuntu1.2 | UBUNTU-CVE-2024-42005 USN-6946-1 |
| Ubuntu | Pro:18.04:LTS | python-django | 1:1.11.11-1ubuntu1.21+esm6 | USN-6946-1 |
| Red Hat | ansible_automation_platform:2.4::el8 | automation-controller, automation-controller-ui, automation-controller-cli and 2 more | 0:4.5.10-1.el8ap | RHSA-2024:6428 |
| Red Hat | ansible_automation_platform:2.4::el8 | python39-django, python3x-django | 0:4.2.15-1.el8ap | RHSA-2024:6428 |
| Red Hat | ansible_automation_platform:2.4::el8 | python39-grpcio, python3x-grpcio, python39-grpcio-debuginfo and 1 more | 0:1.58.3-1.el8ap | RHSA-2024:6428 |
| Red Hat | ansible_automation_platform:2.4::el8, ansible_automation_platform_developer:2.4::el8, ansible_automation_platform_inside:2.4::el8 | python39-zipp | 0:3.19.2-1.el8ap | RHSA-2024:6428 |
| Red Hat | ansible_automation_platform:2.4::el9 | automation-controller, automation-controller-ui, automation-controller-cli and 2 more | 0:4.5.10-1.el9ap | RHSA-2024:6428 |
| Red Hat | ansible_automation_platform:2.4::el9 | python-django, python3-django | 0:4.2.15-1.el9ap | RHSA-2024:6428 |
| Red Hat | ansible_automation_platform:2.4::el9 | python-grpcio, python3-grpcio, python3-grpcio-debuginfo and 1 more | 0:1.58.3-1.el9ap | RHSA-2024:6428 |
| Red Hat | ansible_automation_platform:2.4::el9, ansible_automation_platform_developer:2.4::el9, ansible_automation_platform_inside:2.4::el9 | python-zipp, python3-zipp | 0:3.19.2-1.el9ap | RHSA-2024:6428 |
| Red Hat | ansible_automation_platform_developer:2.4::el8 | automation-controller, automation-controller-cli | 0:4.5.10-1.el8ap | RHSA-2024:6428 |
| Red Hat | ansible_automation_platform_developer:2.4::el9 | automation-controller, automation-controller-cli | 0:4.5.10-1.el9ap | RHSA-2024:6428 |
| Red Hat | rhui:4::el8 | python-aiohttp, python3.11-aiohttp, python-aiohttp-debugsource and 1 more | 0:3.9.4-1.el8ui | RHSA-2025:1335 |
| Red Hat | rhui:4::el8 | python-cryptography, python3.11-cryptography, python-cryptography-debugsource and 1 more | 0:42.0.8-1.el8ui | RHSA-2025:1335 |
| 206 more for Red Hat in the JSON and on Red Hat's page. | ||||
| SUSE | Linux Enterprise Module for Package Hub 15 SP6 | python-Django | 4.2.11-150600.3.6.1 | SUSE-SU-2024:2816-1 |
| SUSE | Package Hub 15 SP5 | python-Django | 2.2.28-bp155.7.15.1 | openSUSE-SU-2024:0272-1 |
| openSUSE | Leap 15.5 | python-Django | 2.0.7-150000.1.27.1 | SUSE-SU-2024:2817-1 |
| openSUSE | Leap 15.5 | python-Django | 2.2.28-bp155.7.15.1 | openSUSE-SU-2024:0272-1 |
| openSUSE | Leap 15.6 | python-Django | 4.2.11-150600.3.6.1 | SUSE-SU-2024:2816-1 |
| openSUSE | Tumbleweed | python-Django | 5.0.8-1.1 | openSUSE-SU-2024:14247-1 |
| openSUSE | Tumbleweed | python-Django | 5.2.16-1.1 | openSUSE-SU-2026:11248-1 |
| openSUSE | Tumbleweed | python-Django4 | 4.2.15-1.1 | openSUSE-SU-2024:14248-1 |
| openSUSE | Tumbleweed | python-Django4 | 4.2.30-4.1 | openSUSE-SU-2026:11235-1 |
| openSUSE | Tumbleweed | python-Django5 | 5.2.16-1.1 | openSUSE-SU-2026:11270-1 |
| openSUSE | Tumbleweed | python-Django6 | 6.0-1.1 | openSUSE-SU-2026:10005-1 |
| Alpine | v3.20, v3.21, v3.22 and 2 more | py3-django | 4.2.16-r0 | ALPINE-CVE-2024-42005 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.
Red Hat rates this Moderate.
This vulnerability is considered of moderate severity rather than high or critical because it requires specific conditions to be exploitable. The potential for SQL injection exists only when QuerySet.values() or values_list() methods are used on models with a JSONField, and an attacker must have control over the JSON object keys passed as arguments. In typical use cases, these methods are often used with predefined or controlled data, limiting the attack surface. Furthermore, the impact is constrained to the manipulation of column aliases, rather than direct injection into more critical parts of the SQL query, reducing the overall risk compared to more direct forms of SQL injection vulnerabilities.
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
| Product | Package | State | Advisory |
|---|---|---|---|
| Discovery 1 for RHEL 9 | discovery/discovery-server-rhel9:1.12.0-1 | Fixed 2025-02-10 | RHSA-2025:1249 |
| Discovery 1 for RHEL 9 | discovery/discovery-ui-rhel9:1.12.0-1 | Fixed 2025-02-10 | RHSA-2025:1249 |
| Red Hat Ansible Automation Platform 2.4 for RHEL 8 | automation-controller-0:4.5.10-1.el8ap | Fixed 2024-09-05 | RHSA-2024:6428 |
| Red Hat Ansible Automation Platform 2.4 for RHEL 8 | python3x-django-0:4.2.15-1.el8ap | Fixed 2024-09-05 | RHSA-2024:6428 |
| Red Hat Ansible Automation Platform 2.4 for RHEL 9 | automation-controller-0:4.5.10-1.el9ap | Fixed 2024-09-05 | RHSA-2024:6428 |
| Red Hat Ansible Automation Platform 2.4 for RHEL 9 | python-django-0:4.2.15-1.el9ap | Fixed 2024-09-05 | RHSA-2024:6428 |
| Red Hat Satellite 6.16 for RHEL 8 | python-django-0:4.2.16-1.el8pc | Fixed 2024-11-05 | RHSA-2024:8906 |
| Red Hat Satellite 6.16 for RHEL 9 | python-django-0:4.2.16-1.el9pc | Fixed 2024-11-05 | RHSA-2024:8906 |
| RHUI 4 for RHEL 8 | python-django-0:4.2.15-1.el8ui | Fixed 2025-02-12 | RHSA-2025:1335 |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-24/ee-dellemc-openmanage-rhel8 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-25/lightspeed-rhel8 | Affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-25/platform-resource-runner-rhel8 | Not affected | |
| Red Hat Ansible Automation Platform 2 | python3.11-django | Affected | |
| Red Hat Certification for Red Hat Enterprise Linux 8 | redhat-certification | Fix deferred | |
| Red Hat Certification Program for Red Hat Enterprise Linux 9 | redhat-certification | Fix deferred |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-42005.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.