CVE-2023-24580 — Resource exhaustion in django — CVE Details
Resource exhaustion in Django
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (3.00%). Schedule for your next planned update.
Does your project use an affected django version?
Paste your requirements.txt to check it for CVE-2023-24580 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
An 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. Passing certain inputs (e.g., an excessive number of parts) to multipart forms could result in too many open files or memory exhaustion, and provided a potential vector for a denial-of-service attack.
Advisory Timeline
- First published February 15, 2023 (1380 days ago).
- Last revised March 19, 2025 — 764 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "django>=3.2.18"
pip install "django>=4.0.10"
pip install "django>=4.1.7"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: PyPI (1).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-400Uncontrolled Resource ConsumptionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-24580ADVISORY
- https://github.com/django/django/commit/628b33a854a9c68ec8a0c51f382f304a0044ec92WEB
- https://github.com/django/django/commit/83f1ea83e4553e211c1c5a0dfc197b66d4e50432WEB
- https://github.com/django/django/commit/a665ed5179f5bbd3db95ce67286d0192eff041d8WEB
- https://www.djangoproject.com/weblog/2023/feb/14/security-releasesWEB
- https://security.netapp.com/advisory/ntap-20230316-0006WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YJB6FUBBLVKKG655UMTLQNN6UQ6EDLSPWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VZS4G6NSZWPTVXMMZHJOJVQEPL3QTO77WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQIWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IKWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FKYVMMR7RPM6AHJ2SBVM2LO6D3NGFY7BWEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YJB6FUBBLVKKG655UMTLQNN6UQ6EDLSPWEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VZS4G6NSZWPTVXMMZHJOJVQEPL3QTO77WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQIWEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IKWEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FKYVMMR7RPM6AHJ2SBVM2LO6D3NGFY7BWEB
- https://lists.debian.org/debian-lts-announce/2023/02/msg00023.htmlWEB
- https://groups.google.com/forum/#%21forum/django-announceWEB
- https://groups.google.com/forum/#!forum/django-announceWEB
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2023-13.yamlWEB
- https://github.com/django/djangoPACKAGE
- https://docs.djangoproject.com/en/4.1/releases/securityWEB
- https://www.openwall.com/lists/oss-security/2023/02/14/1WEB
Frequently Asked Questions
- What is CVE-2023-24580?
- Resource exhaustion in Django. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2023-24580?
- CVE-2023-24580 affects django. It has a 3.0% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-24580 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This places it in the top quartile of EPSS-scored vulnerabilities — 88.1% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2022-34265CRITICAL
Django `Trunc()` and `Extract()` database functions vulnerable to SQL Injection
- CVE-2026-1285HIGH
- CVE-2026-1287MEDIUM
- CVE-2025-48432MEDIUM
Django Improper Output Neutralization for Logs vulnerability
- CVE-2024-53907MEDIUM
Django denial-of-service in django.utils.html.strip_tags()
- CVE-2021-28658
- CVE-2024-41989
- CVE-2021-44420