Feed
9.1CRITICAL
CVE-2024-42005Django SQL injection vulnerability
A critical-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 1.4% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 1.4%
- percentile 73%
- Fix
- Named by a source
- CVE published 7 Aug 2024
Reference
None of the "Needs attention" rules apply right now.
EPSS 1.4% (+1) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- django (PyPI): upgrade to 5.0.8 / 4.2.15 or later on your release line.
- Commit / pull request: https://github.com/django/django/commit/32ebcbf2e1fe3e5ba79a6554a167efce81f7422d
- Commit / pull request: https://github.com/django/django/commit/f4af67b9b41e0f4c117a8741da3abbd1c869ab28
Who should check
django (PyPI) pkg:pypi/django
- Affected>= 5.0, < 5.0.8Fixed in5.0.8OSV (PYSEC-2024-70)
- Affected>= 4.2, < 4.2.15Fixed in4.2.15OSV (PYSEC-2024-70)
Confirmed facts
- CVSS
- 9.1 CRITICAL (version 3.1)
- Score from
- GitHub Advisory Database (GHSA-pv4p-cwwg-4rph)
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-89
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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.
Update history
No events recorded. Our history starts on 1 Jan 2025.
References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2024-42005
- commit / pull requesthttps://github.com/django/django/commit/32ebcbf2e1fe3e5ba79a6554a167efce81f7422d
- commit / pull requesthttps://github.com/django/django/commit/f4af67b9b41e0f4c117a8741da3abbd1c869ab28
- otherhttps://docs.djangoproject.com/en/dev/releases/security
- otherhttps://github.com/django/django
- otherhttps://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2024-70.yaml
- otherhttps://groups.google.com/forum/#%21forum/django-announce
- otherhttps://security.netapp.com/advisory/ntap-20240905-0007
- otherhttps://www.djangoproject.com/weblog/2024/aug/06/security-releases
- otherhttps://docs.djangoproject.com/en/dev/releases/security/
- otherhttps://www.djangoproject.com/weblog/2024/aug/06/security-releases/
- advisoryhttps://github.com/advisories/GHSA-pv4p-cwwg-4rph
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- GHSA-pv4p-cwwg-4rph (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2024-70 (PyPA Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 38 min ago · osv 37 min ago · nvd 37 min ago · epss 37 min ago · JSON · ask via MCP: explain_vulnerability
Also known as BIT-django-2024-42005, GHSA-pv4p-cwwg-4rph, PYSEC-2024-70