CVE-2023-36053
Django has regular expression denial of service vulnerability in EmailValidator/URLValidator
Also known as BIT-django-2023-36053, GHSA-jh3w-4vvf-mjgr, PYSEC-2023-100
Mitigation
- Upgrade django to one of 3.2.20, 4.1.10, 4.2.3 (or later in the same release line).
Who should check
- Projects that depend on PyPI package django (>= 3.2a1, < 3.2.20)
- Anyone running n/a (versions: see the vendor advisory)
- Anyone running debian_linux 10.0
- Anyone running fedoraproject fedora 37
- Anyone running djangoproject django (versions: see the vendor advisory)
Vulnerability facts
- Affected
- django >= 3.2a1, < 3.2.20
- Fixed in
- 3.2.20, 4.1.10, 4.2.3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, CNA)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
- 3.32% chance of exploitation in 30 days (percentile 89, 2026-11-26)
- CWE
- CWE-1333
- Modified
Description
In Django 3.2 before 3.2.20, 4 before 4.1.10, and 4.2 before 4.2.3, EmailValidator and URLValidator are subject to a potential ReDoS (regular expression denial of service) attack via a very large number of domain name labels of emails and URLs.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI django | >= 3.2a1, < 3.2.20 | 3.2.20, 4.1.10, 4.2.3 | osv |
| n/a | — | — | nvd |
| debian_linux | 10.0 | — | nvd |
| fedoraproject fedora | 37 | — | nvd |
| djangoproject django | — | — | 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-36053. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-36053.md Affected: django >= 3.2a1, < 3.2.20 Fixed in: 3.2.20, 4.1.10, 4.2.3 Steps: 1. Search this machine and project for django (PyPI), n/a, debian_linux, fedoraproject fedora, djangoproject django: 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://www.debian.org/security/2023/dsa-5465
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XG5DYKPNDCEHJQ3TKPJQO7QGSR4FAYMS/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NRDGTUN4LTI6HG4TWR3JYLSFVXPZT42A/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D/
- https://nvd.nist.gov/vuln/detail/CVE-2023-36053
- https://github.com/advisories/GHSA-jh3w-4vvf-mjgr
Patches
- https://www.djangoproject.com/weblog/2023/jul/03/security-releases/
- https://github.com/django/django/commit/454f2fb93437f98917283336201b4048293f7582
- https://github.com/django/django/commit/ad0410ec4f458aa39803e5f6b9a3736527062dcd
- https://github.com/django/django/commit/b7c5feb35a31799de6e582ad6a5a91a9de74e0f9
- https://github.com/django/django/commit/beb3f3d55940d9aa7198bf9d424ab74e873aec3d
Other
- https://groups.google.com/forum/#%21forum/django-announce
- https://docs.djangoproject.com/en/4.2/releases/security/
- https://lists.debian.org/debian-lts-announce/2023/07/msg00022.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D/
- https://www.djangoproject.com/weblog/2023/jul/03/security-releases
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XG5DYKPNDCEHJQ3TKPJQO7QGSR4FAYMS
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NRDGTUN4LTI6HG4TWR3JYLSFVXPZT42A
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XG5DYKPNDCEHJQ3TKPJQO7QGSR4FAYMS
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NRDGTUN4LTI6HG4TWR3JYLSFVXPZT42A
- https://groups.google.com/forum/#!forum/django-announce
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2023-100.yaml
- https://github.com/django/django
- https://docs.djangoproject.com/en/4.2/releases/security
FAQ
Is CVE-2023-36053 being exploited?
There is no confirmed exploitation: CVE-2023-36053 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 3.32% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-36053?
High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2023-36053?
django >= 3.2a1, < 3.2.20.
Is there a fix for CVE-2023-36053?
Yes. Fixed in 3.2.20, 4.1.10, 4.2.3. Upgrade django to one of 3.2.20, 4.1.10, 4.2.3 (or later in the same release line).
How do I check if I'm affected by CVE-2023-36053?
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.