CVE
CVE-2024-53908
CVE-2024-53908CRIT 9.8EPSS 73%
CNA description
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.)
Affected versions
- django≥ 5.1.0, < 5.1.4Fixed in 5.1.4
- django≥ 5.1, < 5.1.4Fixed in 5.1.4
- django≥ 5.0.0, < 5.0.10Fixed in 5.0.10
- django≥ 5.0, < 5.0.10Fixed in 5.0.10
- django≥ 4.2.0, < 4.2.17Fixed in 4.2.17
- django≥ 4.2, < 4.2.17Fixed in 4.2.17
Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.
Advisories and patches
- docs.djangoproject.com/en/dev/releases/security/ · Patch, Vendor Advisory
- github.com/advisories/GHSA-m9g8-fxxm-xg86 · Third Party Advisory
- osv.dev/vulnerability/GHSA-m9g8-fxxm-xg86 · Third Party Advisory
- docs.djangoproject.com/en/dev/releases/security · Vendor Advisory
- www.djangoproject.com/weblog/2024/dec/04/security-releases · Vendor Advisory
- osv.dev/vulnerability/PYSEC-2024-157 · Third Party Advisory
Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.