CVE-2024-42005Djangoproject Django
High 7.3 No auth needed
Follow: this CVE · Djangoproject · Djangoproject Django We alert you by email or Slack (account required).
- Priority
- 59
- CVSS 3.1
- 7.3
- EPSS
- 1.4% probability of exploitation in 30 days · percentile 73
- Auth required
- No
- Published
- Aug 7, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-89
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
What happens
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.
What to do
- Apply the vendor's security update for Django.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | django |
≥ 5.0 < 5.0.8 |
5.0.8 |
pip install "django>=5.0.8" |
| PyPI | django |
≥ 4.2 < 4.2.15 |
4.2.15 |
pip install "django>=4.2.15" |
| PyPI | django |
≥ 5.0 < 5.0.8 |
5.0.8 |
pip install "django>=5.0.8" |
| PyPI | django |
≥ 4.2 < 4.2.15 |
4.2.15 |
pip install "django>=4.2.15" |
Per OSV / GitHub Advisories (GHSA-pv4p-cwwg-4rph, PYSEC-2024-70). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| djangoproject | django | ≥ 4.2 < 4.2.15 |
| djangoproject | django | ≥ 5.0 < 5.0.8 |
Official advisories
- python313-Django5-5.2.16-1.1 on GA media · SUSE · openSUSE-SU-2026:11270-1 · Jul 14, 2026 Critical
- python313-Django-5.2.16-1.1 on GA media · SUSE · openSUSE-SU-2026:11248-1 · Jul 10, 2026 Critical
- python313-Django4-4.2.30-4.1 on GA media · SUSE · openSUSE-SU-2026:11235-1 · Jul 9, 2026 Critical
Also: SUSE (+1)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- docs.djangoproject.com Patch Vendor Advisory
- groups.google.com Not Applicable
- www.djangoproject.com Vendor Advisory
- security.netapp.com