CVE-2023-41164 — Django Denial of service vulnerability in django
Django Denial of service vulnerability in django.utils.encoding.uri_to_iri
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.58%). Schedule for your next planned update.
Does your project use an affected django version?
Paste your requirements.txt to check it for CVE-2023-41164 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
In Django 3.2 before 3.2.21, 4.1 before 4.1.11, and 4.2 before 4.2.5, django.utils.encoding.uri_to_iri() is subject to a potential DoS (denial of service) attack via certain inputs with a very large number of Unicode characters.
Advisory Timeline
- First published November 3, 2023 (1119 days ago).
- Last revised November 4, 2025 — 733 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "django>=4.1.11"
pip install "django>=3.2.21"
pip install "django>=4.2.5"
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-1284
- CWE-400Uncontrolled Resource ConsumptionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 5.3 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-41164ADVISORY
- https://github.com/django/django/commit/6f030b1149bd8fa4ba90452e77cb3edc095ce54eWEB
- https://github.com/django/django/commit/9c51b4dcfa0cefcb48231f4d71cafa80821f87b9WEB
- https://github.com/django/django/commit/ba00bc5ec6a7eff5e08be438f7b5b0e9574e8ff0WEB
- https://docs.djangoproject.com/en/4.2/releases/securityWEB
- https://github.com/django/djangoPACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2023-225.yamlWEB
- https://groups.google.com/forum/#!forum/django-announceWEB
- https://groups.google.com/forum/#%21forum/django-announceWEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HJFRPUHDYJHBH3KYHSPGULQM4JN7BMSUWEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4DWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HJFRPUHDYJHBH3KYHSPGULQM4JN7BMSUWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4DWEB
- https://security.netapp.com/advisory/ntap-20231214-0002WEB
- https://www.djangoproject.com/weblog/2023/sep/04/security-releasesWEB
Frequently Asked Questions
- What is CVE-2023-41164?
- Django Denial of service vulnerability in django.utils.encoding.uri_to_iri. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.3/10).
- How do I check if my project is affected by CVE-2023-41164?
- CVE-2023-41164 affects django. It has a 1.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-41164 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This places it in the top quartile of EPSS-scored vulnerabilities — 75.9% 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-28347CRITICAL
SQL Injection in Django
- CVE-2021-45115HIGH
Denial-of-service in Django
- CVE-2026-48588MEDIUM
- CVE-2026-53877MEDIUM
- CVE-2024-41989MEDIUM
Django memory consumption vulnerability
- CVE-2025-27556MEDIUM
Django Potential Denial of Service (DoS) on Windows
- CVE-2026-1285LOW
Django has Inefficient Algorithmic Complexity
- CVE-2023-31047