CVE-2024-53908 — Django SQL injection in django — CVE Details
Django SQL injection in HasKey(lhs, rhs) on Oracle
Summary
Advisory Timeline
- First published December 6, 2024 (675 days ago).
- Last revised September 10, 2026 — 643 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "django>=5.1.4"
pip install "django>=5.1.4"
pip install "django>=4.2.17"
pip install "django>=5.0.10"
pip install "django>=5.0.10"
pip install "django>=4.2.17"
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (6)
Affects 1 ecosystem: pypi (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| django | pypi | 5.1, 5.1.1, 5.1.2, 5.1.3 | 5.1.4 |
| django | pypi | 5.1, 5.1.1, 5.1.2, 5.1.3 | 5.1.4 |
| django | pypi | 4.2, 4.2.1, 4.2.10, 4.2.11 (+13 more) | 4.2.17 |
| django | pypi | 5.0, 5.0.1, 5.0.2, 5.0.3 (+6 more) | 5.0.10 |
| django | pypi | 5.0, 5.0.1, 5.0.2, 5.0.3 (+6 more) | 5.0.10 |
| django | pypi | 4.2, 4.2.1, 4.2.10, 4.2.11 (+13 more) | 4.2.17 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-89SQL InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-53908ADVISORY
- https://docs.djangoproject.com/en/dev/releases/securityWEB
- https://github.com/django/djangoPACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2024-157.yamlWEB
- https://groups.google.com/g/django-announceWEB
- https://www.djangoproject.com/weblog/2024/dec/04/security-releasesWEB
- https://www.openwall.com/lists/oss-security/2024/12/04/3WEB
Frequently Asked Questions
- What is CVE-2024-53908?
- Django SQL injection in HasKey(lhs, rhs) on Oracle This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2024-53908?
- CVE-2024-53908 affects django. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-53908 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- CVE-2022-23833HIGH
Infinite Loop in Django
- CVE-2025-57833HIGH
Django is subject to SQL injection through its column aliases
- CVE-2021-45116HIGH
Information disclosure in Django
- CVE-2025-48432MEDIUM
Django Improper Output Neutralization for Logs vulnerability
- CVE-2021-31542
- CVE-2021-32052
- CVE-2021-3281
- CVE-2021-33203
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies