CVE-2024-53908 in the critical feed json
Django SQL injection in HasKey(lhs, rhs) on Oracle
published 2024-12-06 23 mo ago modified 2026-09-10 59 d ago also BIT-django-2024-53908 , EUVD-2024-0049 , GHSA-m9g8-fxxm-xg86 , PYSEC-2024-157
- cvss
- 9.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.4%
- EPSS 1.4% chance of exploitation in 30 days, percentile 72%
- public exploits
- 0
- none known
Summary
An issue was discovered in Django 5.1 before 5.1.4, 5.0 before 5.0.10, and 4.2 before 4.2.17. Direct usage of the django.db.models.fields.json.HasKey lookup, when an Oracle database is used, is subject to SQL injection if untrusted data is used as an lhs value. (Applications that use the jsonfield.has_key lookup via __ are unaffected.)
Patch / fix
- pypi django 4.2.17, 5.0.10, 5.1.4
- bitnami django 4.2.17, 5.1.4
- djangoproject django 4.2.17, 5.0.10, 5.1.4
- python-django Debian 14, Debian 13 3:4.2.17-1
debian advisories DEBIAN-CVE-2024-53908
- python-django Ubuntu 24.04 LTS 3:4.2.11-1ubuntu1.4
ubuntu advisories UBUNTU-CVE-2024-53908
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- python-jinja2 ansible automation platform inside 2.4, ansible automation platform developer 2.4, ansible automation platform 2.4 3.1.5-1.el9ap
- python3-jinja2 ansible automation platform inside 2.4, ansible automation platform developer 2.4, ansible automation platform 2.4 3.1.5-1.el9ap
- python39-jinja2 ansible automation platform inside 2.4, ansible automation platform developer 2.4, ansible automation platform 2.4 3.1.5-1.el8ap
- python3x-jinja2 ansible automation platform inside 2.4, ansible automation platform developer 2.4, ansible automation platform 2.4 3.1.5-1.el8ap
- automation-controller-venv-tower ansible automation platform 2.4 4.5.17-1.el8ap
- automation-controller-venv-tower ansible automation platform 2.4 4.5.17-1.el9ap
- python3.11-aiohttp ansible automation platform 2.5 3.10.11-1.el8ap
- python3.11-aiohttp ansible automation platform 2.5 3.10.11-1.el9ap
red hat advisories RHSA-2025:0721RHSA-2025:0340
- python-Django SLE Module for Package Hub 15 SP6, openSUSE Leap 15.6 4.2.11-150600.3.12.1
suse advisories SUSE-SU-2024:4285-1
- python-Django5 openSUSE Tumbleweed 5.2.16-1.1
- python-Django6 openSUSE Tumbleweed 6.0-1.1
- python-Django openSUSE Tumbleweed 5.1.4-1.1
- python-Django4 openSUSE Tumbleweed 4.2.17-1.1
opensuse advisories openSUSE-SU-2026:11270-1openSUSE-SU-2026:10005-1openSUSE-SU-2024:14568-1openSUSE-SU-2024:14565-1
- py3-django Alpine 3.24, Alpine 3.23, Alpine 3.22 +1 more 4.2.20-r0
alpine advisories ALPINE-CVE-2024-53908
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-53908 updated cvss 9.1
django: Potential SQL injection in HasKey(lhs, rhs) on Oracle
-
Red Hat Ansible Automation Platform 1.2 ansible-toweraffected: no fix planned “Will not fix”
-
Red Hat Ansible Automation Platform 2 ansible-automation-platform-24/lightspeed-rhel8, ansible-automation-platform-25/ansible-dev-tools-rhel9, ansible-automation-platform-24/platform-resource-runner-rhel8, ansible-automation-platform-25/platform-resource-runner-rhel9affected: no fix available, no fix planned “Will not fix”
-
Red Hat Ansible Automation Platform 2.4 for RHEL 8 automation-controller-venv-tower 4.5.17-1.el8ap, ansible-automation-platform-24/hub-rhel8 4.9.2-34, ansible-automation-platform-24/ee-29-rhel8 1.0.0-432, ansible-automation-platform-24/hub-web-rhel8 4.9.2-32, ansible-automation-platform-24/controller-rhel8 4.5.15-2, ansible-automation-platform-24/de-minimal-rhel8 1.0.7-53, +25 more Red Hat Ansible Automation Platform 2.4 for RHEL 9 automation-controller-venv-tower 4.5.17-1.el9ap, ansible-automation-platform-24/de-minimal-rhel9 1.0.7-54, ansible-automation-platform-24/ee-minimal-rhel9 1.0.0-788, ansible-automation-platform-24/de-supported-rhel9 1.0.7-62, ansible-automation-platform-24/ee-supported-rhel9 1.0.0-860, ansible-automation-platform-24/ansible-builder-rhel9 3.0.1-110, +2 morefixed: vendor fix RHSA-2024:11144
-
Red Hat Ansible Automation Platform 2.5 for RHEL 8 automation-controller-venv-tower 4.6.6-1.el8ap, ansible-automation-platform-25/hub-rhel8 4.10.1-17, ansible-automation-platform-25/receptor-rhel8 1.5.1-6, ansible-automation-platform-25/hub-web-rhel8 4.10.1-14, ansible-automation-platform-25/de-minimal-rhel8 1.1.2-7, ansible-automation-platform-25/controller-rhel8 4.6.3-22, +27 more Red Hat Ansible Automation Platform 2.5 for RHEL 9 automation-controller-venv-tower 4.6.6-1.el9ap, ansible-automation-platform-25/de-minimal-rhel9 1.1.2-6, ansible-automation-platform-25/de-supported-rhel9 1.1.2-5, ansible-automation-platform-25/ee-minimal-rhel9 1.0.0-790, ansible-automation-platform-25/ee-supported-rhel9 1.0.0-861, ansible-automation-platform-25/ansible-builder-rhel9 3.1.0-197, +3 morefixed: vendor fix RHSA-2024:11146
-
Red Hat Ansible Automation Platform 2 ansible-automation-platform-25/lightspeed-rhel8, ansible-automation-platform-24/de-supported-rhel8, ansible-automation-platform-25/de-supported-rhel8, ansible-automation-platform-24/ansible-dev-tools-rhel8, ansible-automation-platform-24/ee-dellemc-openmanage-rhel8 Red Hat Ansible Automation Platform 2.4 for RHEL 8 python39-jinja2 3.1.5-1.el8ap, python3x-jinja2 3.1.5-1.el8ap, python39-pulpcore 3.28.36-1.el8ap, python3x-pulpcore 3.28.36-1.el8ap, automation-controller 4.5.17-1.el8ap, automation-controller-ui 4.5.17-1.el8ap, +3 more Red Hat Ansible Automation Platform 2.4 for RHEL 9 python-jinja2 3.1.5-1.el9ap, python3-jinja2 3.1.5-1.el9ap, python-pulpcore 3.28.36-1.el9ap, python3-pulpcore 3.28.36-1.el9ap, automation-controller 4.5.17-1.el9ap, automation-controller-ui 4.5.17-1.el9ap, +3 more Red Hat Ansible Automation Platform 2.5 for RHEL 8 ansible-core 2.16.14-2.el8ap, ansible-test 2.16.14-2.el8ap, python3.11-yarl 1.13.1-1.el8ap, python3.11-aiodns 3.2.0-1.el8ap, python3.11-aiohttp 3.10.11-1.el8ap, automation-controller 4.6.6-1.el8ap, +20 more Red Hat Ansible Automation Platform 2.5 for RHEL 9 ansible-core 2.16.14-2.el9ap, ansible-test 2.16.14-2.el9ap, python3.11-yarl 1.13.1-1.el9ap, python3.11-aiodns 3.2.0-1.el9ap, python3.11-aiohttp 3.10.11-1.el9ap, automation-controller 4.6.6-1.el9ap, +20 more Red Hat Discovery 1 discovery-server-containernot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- 23 mo ago
Exploit prediction
1.42% chance of exploitation in the next 30 days, higher than 72% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | django | >=5.0.0, <5.0.10 >=5.1.0, <5.1.4 >=4.2.0, <4.2.17 >=5.1, <5.1.4 >=5.0, <5.0.10 >=4.2, <4.2.17 |
5.0.10 5.1.4 4.2.17 |
| bitnami | django | >=4.2.0, <4.2.17 >=5.0.0, <5.1.4 |
4.2.17 5.1.4 |
Affected products
- djangoproject django
Classification
- Weakness
-
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
- Technology feeds
References
-
docs.djangoproject.com
/en/dev/releases/security/
patch, vendor-advisory, advisory, web
-
groups.google.com
/g/django-announce
web, release-notes, article
-
openwall.com
/lists/oss-security/2024/12/04/3
web, mailing-list, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-53908
advisory, web
-
docs.djangoproject.com
/en/dev/releases/security
web
-
github.com
/django/django
package
-
github.com
/pypa/advisory-database/tree/main/vulns/django/PYSEC-2024-157.yaml
web
-
djangoproject.com
/weblog/2024/dec/04/security-releases
web
-
github.com
/advisories/GHSA-m9g8-fxxm-xg86
advisory
Sources
- CVE List CVE-2024-53908
- GitHub Advisory GHSA-m9g8-fxxm-xg86
- NVD CVE-2024-53908
- OSV BIT-django-2024-53908
- OSV PYSEC-2024-157
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.