An issue was discovered in Django 5.0 before 5.0.8 and 4.2 before 4.2.15.
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.
- Published
- Aug 7, 2024
- Updated
- Jun 17, 2026
- EPSS
- 1.5% · 74th percentile
- CWE
- CWE-89
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
29
Monitor
Low priority for now.
- CVSS
- 29 / 40 · 7.3 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 1.5%
CISA SSVC decision
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
Vulnrichment: CISA's decision-tree inputs.
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for the hundreds of thousands of vulnerabilities in the database; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpAffected systems
| Vendor | Product | CPE |
|---|---|---|
| djangoproject | django | cpe:2.3:a:djangoproject:django |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- djangoproject django4.2 and later · before 4.2.15
- djangoproject django5.0 and later · before 5.0.8
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:11 | python-django | before 2:2.2.28-1~deb11u11 | 2:2.2.28-1~deb11u11 |
| Debian:12 | python-django | before 3:3.2.25-0+deb12u1 | 3:3.2.25-0+deb12u1 |
| Debian:13 | python-django | before 3:4.2.15-1 | 3:4.2.15-1 |
| openSUSE:Leap 15.5 | python-Django | before 2.0.7-150000.1.27.1 | 2.0.7-150000.1.27.1 |
| openSUSE:Tumbleweed | python-Django | before 5.0.8-1.1 | 5.0.8-1.1 |
| openSUSE:Tumbleweed | python-Django4 | before 4.2.15-1.1 | 4.2.15-1.1 |
| PyPI | django | from 4.2 · before 4.2.15 | 4.2.15 |
| PyPI | django | from 5.0 · before 5.0.8 | 5.0.8 |
| Red Hat:ansible_automation_platform_developer:2.4::el8 | automation-controller | before 0:4.5.10-1.el8ap | 0:4.5.10-1.el8ap |
| Red Hat:ansible_automation_platform_developer:2.4::el8 | automation-controller-cli | before 0:4.5.10-1.el8ap | 0:4.5.10-1.el8ap |
| Red Hat:ansible_automation_platform_developer:2.4::el8 | python39-zipp | before 0:3.19.2-1.el8ap | 0:3.19.2-1.el8ap |
| Red Hat:ansible_automation_platform_developer:2.4::el9 | automation-controller | before 0:4.5.10-1.el9ap | 0:4.5.10-1.el9ap |
| Red Hat:ansible_automation_platform_developer:2.4::el9 | automation-controller-cli | before 0:4.5.10-1.el9ap | 0:4.5.10-1.el9ap |
| Red Hat:ansible_automation_platform_developer:2.4::el9 | python-zipp | before 0:3.19.2-1.el9ap | 0:3.19.2-1.el9ap |
| Red Hat:ansible_automation_platform_developer:2.4::el9 | python3-zipp | before 0:3.19.2-1.el9ap | 0:3.19.2-1.el9ap |
| Red Hat:ansible_automation_platform:2.4::el8 | automation-controller-server | before 0:4.5.10-1.el8ap | 0:4.5.10-1.el8ap |
| Red Hat:ansible_automation_platform:2.4::el8 | automation-controller-ui | before 0:4.5.10-1.el8ap | 0:4.5.10-1.el8ap |
| Red Hat:ansible_automation_platform:2.4::el8 | automation-controller-venv-tower | before 0:4.5.10-1.el8ap | 0:4.5.10-1.el8ap |
| Red Hat:ansible_automation_platform:2.4::el8 | python39-django | before 0:4.2.15-1.el8ap | 0:4.2.15-1.el8ap |
| Red Hat:ansible_automation_platform:2.4::el8 | python39-grpcio | before 0:1.58.3-1.el8ap | 0:1.58.3-1.el8ap |
| Red Hat:ansible_automation_platform:2.4::el8 | python39-grpcio-debuginfo | before 0:1.58.3-1.el8ap | 0:1.58.3-1.el8ap |
| Red Hat:ansible_automation_platform:2.4::el8 | python3x-django | before 0:4.2.15-1.el8ap | 0:4.2.15-1.el8ap |
| Red Hat:ansible_automation_platform:2.4::el8 | python3x-grpcio | before 0:1.58.3-1.el8ap | 0:1.58.3-1.el8ap |
| Red Hat:ansible_automation_platform:2.4::el8 | python3x-grpcio-debugsource | before 0:1.58.3-1.el8ap | 0:1.58.3-1.el8ap |
+96
Same product
djangoproject: all recordsOther highest-scoring records for the same primary product.
- CVE-2022-34265An issue was discovered in Django 3.2 before 3.2.14 and 4.0 before 4.0.6.61This week
- CVE-2020-7471Django 1.11 before 1.11.28, 2.2 before 2.2.10, and 3.0 before 3.0.3 allows SQL Injection if untrusted data is used as a StringAgg delimiter 59Plan
- CVE-2019-19844Django before 1.11.27, 2.x before 2.2.9, and 3.x before 3.0.1 allows account takeover.55Plan
- CVE-2019-14234An issue was discovered in Django 1.11.x before 1.11.23, 2.1.x before 2.1.11, and 2.2.x before 2.2.4.53Plan
- CVE-2021-35042Django 3.1.x before 3.1.13 and 3.2.x before 3.2.5 allows QuerySet.order_by SQL injection if order_by is untrusted input from a client of a w52Plan
- CVE-2023-24580An issue was discovered in the Multipart Request Parser in Django 3.2 before 3.2.18, 4.0 before 4.0.10, and 4.1 before 4.1.7.49Plan
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:python-django | 3:3.2.25-0+deb12u1 · Debian:12 | Package registry (OSV) |
| opensuse:python-Django | 4.2.11-150600.3.6.1 · openSUSE:Leap 15.6 | Package registry (OSV) |
| opensuse:python-Django4 | 4.2.15-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| PyPI:django | 4.2.15 | Package registry (OSV) |
| PyPI:django | 5.0.8 | Package registry (OSV) |
| red hat:automation-controller-venv-tower | 0:4.5.10-1.el8ap · Red Hat:ansible_automation_platform:2.4::el8 | Package registry (OSV) |
| red hat:python-grpcio | 0:1.58.3-1.el9ap · Red Hat:ansible_automation_platform:2.4::el9 | Package registry (OSV) |
| red hat:python-grpcio-debugsource | 0:1.58.3-1.el9ap · Red Hat:ansible_automation_platform:2.4::el9 | Package registry (OSV) |
| red hat:python-zipp | 0:3.19.2-1.el9ap · Red Hat:ansible_automation_platform_developer:2.4::el9 | Package registry (OSV) |
| red hat:python3-grpcio | 0:1.58.3-1.el9ap · Red Hat:ansible_automation_platform:2.4::el9 | Package registry (OSV) |
| red hat:python3-grpcio-debuginfo | 0:1.58.3-1.el9ap · Red Hat:ansible_automation_platform:2.4::el9 | Package registry (OSV) |
| red hat:python3-zipp | 0:3.19.2-1.el9ap · Red Hat:ansible_automation_platform_developer:2.4::el9 | Package registry (OSV) |
| red hat:python39-grpcio | 0:1.58.3-1.el8ap · Red Hat:ansible_automation_platform:2.4::el8 | Package registry (OSV) |
| red hat:python39-grpcio-debuginfo | 0:1.58.3-1.el8ap · Red Hat:ansible_automation_platform:2.4::el8 | Package registry (OSV) |
| red hat:python39-zipp | 0:3.19.2-1.el8ap · Red Hat:ansible_automation_platform_developer:2.4::el8 | Package registry (OSV) |
| red hat:python3x-grpcio | 0:1.58.3-1.el8ap · Red Hat:ansible_automation_platform:2.4::el8 | Package registry (OSV) |
| red hat:python3x-grpcio-debugsource | 0:1.58.3-1.el8ap · Red Hat:ansible_automation_platform:2.4::el8 | Package registry (OSV) |
| suse:python-Django | 4.2.11-150600.3.6.1 · SUSE:Linux Enterprise Module for Package Hub 15 SP6 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
- CVE-2025-64459455 days apartPotential SQL injection via _connector keyword argument in QuerySet and Q objects42Plan
- CVE-2024-53908121 days apartAn issue was discovered in Django 5.1 before 5.1.4, 5.0 before 5.0.10, and 4.2 before 4.2.17.39Monitor
- CVE-2025-59681420 days apartAn issue was discovered in Django 4.2 before 4.2.25, 5.1 before 5.1.13, and 5.2 before 5.2.7.39Monitor
- CVE-2025-57833392 days apartAn issue was discovered in Django 4.2 before 4.2.24, 5.1 before 5.1.12, and 5.2 before 5.2.6.37Monitor
- CVE-2025-13372482 days apartPotential SQL injection in FilteredRelation column aliases on PostgreSQL17Monitor
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
National notice (Türkiye Cybersecurity Directorate / USOM)
Official security notices citing this record; remediation advice is on the agency's page.
- TR-24-1176 · Aug 8, 2024(Django Güvenlik Bildirimi)
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- low · data can be read
- Integrity
- low · data or configuration can be modified
- Availability
- low · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- Low
- Integrity impact
- Low
- Availability impact
- Low
Weakness class (CWE)
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
nvd-primary
Root cause
The query text is built by concatenating user input. The database cannot tell where the data ends and the command begins.
The bug in code
The whole CWE-89 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
const owner = req.query.owner;const rows = await db.query( "SELECT * FROM files WHERE owner = '" + owner + "'");Fixed
const owner = req.query.owner;const rows = await db.query( "SELECT * FROM files WHERE owner = $1", [owner]);Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Command Line Execution through SQL InjectionCAPEC-108likelihood: Low · Very High
- Object Relational Mapping InjectionCAPEC-109likelihood: Low · High
- SQL Injection through SOAP Parameter TamperingCAPEC-110likelihood: High · Very High
- Expanding Control over the Operating System from the DatabaseCAPEC-470Very High
- SQL InjectionCAPEC-66likelihood: High · High
- Blind SQL InjectionCAPEC-7likelihood: High · High
ATT&CK techniques
—
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- docs.djangoproject.com/en/dev/releases/security/
- groups.google.com/forum/#%21forum/django-announce
- www.djangoproject.com/weblog/2024/aug/06/security-releases/
- security.netapp.com/advisory/ntap-20240905-0007/
Vendor advisories and official records. Exploit/PoC links are deliberately left out.