CVE-2023-41164
Django Denial of service vulnerability in django.utils.encoding.uri_to_iri
Also known as BIT-django-2023-41164, GHSA-7h4p-27mh-hmrw, PYSEC-2023-225
Mitigation
- Upgrade django to one of 3.2.21, 4.1.11, 4.2.5 (or later in the same release line).
Who should check
- Projects that depend on PyPI package django (>= 3.2, < 3.2.21)
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- django >= 3.2, < 3.2.21
- Fixed in
- 3.2.21, 4.1.11, 4.2.5
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, NVD)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 1.58% chance of exploitation in 30 days (percentile 76, 2026-11-26)
- CWE
- CWE-1284
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI django | >= 3.2, < 3.2.21 | 3.2.21, 4.1.11, 4.2.5 | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-41164. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-41164.md Affected: django >= 3.2, < 3.2.21 Fixed in: 3.2.21, 4.1.11, 4.2.5 Steps: 1. Search this machine and project for django (PyPI), n/a: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://docs.djangoproject.com/en/4.2/releases/security/
- https://www.djangoproject.com/weblog/2023/sep/04/security-releases/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HJFRPUHDYJHBH3KYHSPGULQM4JN7BMSU/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D/
- https://nvd.nist.gov/vuln/detail/CVE-2023-41164
- https://github.com/advisories/GHSA-7h4p-27mh-hmrw
Patches
Other
- https://groups.google.com/forum/#%21forum/django-announce
- https://security.netapp.com/advisory/ntap-20231214-0002/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D/
- https://docs.djangoproject.com/en/4.2/releases/security
- https://github.com/django/django
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2023-225.yaml
- https://groups.google.com/forum/#!forum/django-announce
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HJFRPUHDYJHBH3KYHSPGULQM4JN7BMSU
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HJFRPUHDYJHBH3KYHSPGULQM4JN7BMSU
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D
- https://security.netapp.com/advisory/ntap-20231214-0002
- https://www.djangoproject.com/weblog/2023/sep/04/security-releases
FAQ
Is CVE-2023-41164 being exploited?
There is no confirmed exploitation: CVE-2023-41164 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.58% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-41164?
High: CVSS 7.5 (v3.1, scored by NVD). Remote, no login needed.
Which versions are affected by CVE-2023-41164?
django >= 3.2, < 3.2.21.
Is there a fix for CVE-2023-41164?
Yes. Fixed in 3.2.21, 4.1.11, 4.2.5. Upgrade django to one of 3.2.21, 4.1.11, 4.2.5 (or later in the same release line).
How do I check if I'm affected by CVE-2023-41164?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.