CVE-2024-42005
Django SQL injection vulnerability
9.1
CRITICAL
CVSS 3.1
EPSS 0.33%
Description
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.
How to fix CVE-2024-42005
To remediate CVE-2024-42005, upgrade the affected package to a fixed version below.
- Bitnami/django—upgrade to 4.2.15 or later
- —upgrade to 2:2.2.28-1~deb11u11 or later
- —upgrade to 5.0.8 or later
- —upgrade to 5.0.8 or later
Is CVE-2024-42005 being exploited?
Low — EPSS is 0.3%, meaning exploitation activity has not been observed at scale.
Affected packages (4)
- >= 4.2.0, < 4.2.15, >= 5.0.0, < 5.0.8
- from 0, < 2:2.2.28-1~deb11u11
- >= 5.0, < 5.0.8
- >= 5.0, < 5.0.8, >= 4.2, < 4.2.15
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | CRITICAL9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |