cve.bz

CVE-2024-42005

7.3 highEPSS 1.5%

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.

Severity

CVSS 3.1

7.3 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
EPSS
1.5% chance of exploitation in the next 30 days; higher than 74% of CVEs (scores of 2026-10-31)
CWE
CWE-89
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-pv4p-cwwg-4rphPyPIdjango>=5.0 <5.0.85.0.8
GHSA-pv4p-cwwg-4rphPyPIdjango>=4.2 <4.2.154.2.15
PYSEC-2024-70PyPIdjango>=5.0 <5.0.8
>=4.2 <4.2.15
5.0.8, 4.2.15

References

Check your stackJSON