GitHub Advisoryadvisory · PyPI
GHSA-jh3w-4vvf-mjgr Django has regular expression denial of service vulnerability in EmailValidator/URLValidator
HIGH
Official page ↗
- Aliases
- CVE-2023-36053
- Ecosystem
- PyPI
- Packages
- Django
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-1333
- Reviewed
- 2023-07-05
Affected packages
• PyPI Django: >= 3.2a1, < 3.2.20 → fixed in 3.2.20
• PyPI Django: >= 4.0a1, < 4.1.10 → fixed in 4.1.10
• PyPI Django: >= 4.2a1, < 4.2.3 → fixed in 4.2.3
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.
Related
Alias · CVE (1)
- CVE-2023-36053 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… vulnerability
Weakness · CWE (1)
- CWE-1333 Inefficient Regular Expression Complexity weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-36053 advisory
- https://github.com/django/django/commit/454f2fb93437f98917283336201b4048293f7582 web
- https://github.com/django/django/commit/ad0410ec4f458aa39803e5f6b9a3736527062dcd web
- https://github.com/django/django/commit/b7c5feb35a31799de6e582ad6a5a91a9de74e0f9 web
- https://github.com/django/django/commit/beb3f3d55940d9aa7198bf9d424ab74e873aec3d web
- https://www.djangoproject.com/weblog/2023/jul/03/security-releases web
- https://www.debian.org/security/2023/dsa-5465 web
- https://lists.fedoraproject.org/archives/list/[email protected]/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D web
- https://lists.fedoraproject.org/archives/list/[email protected]/message/XG5DYKPNDCEHJQ3TKPJQO7QGSR4FAYMS web
- https://lists.fedoraproject.org/archives/list/[email protected]/message/NRDGTUN4LTI6HG4TWR3JYLSFVXPZT42A web
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D web
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XG5DYKPNDCEHJQ3TKPJQO7QGSR4FAYMS web
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NRDGTUN4LTI6HG4TWR3JYLSFVXPZT42A web
- https://lists.debian.org/debian-lts-announce/2023/07/msg00022.html web
- https://groups.google.com/forum/#%21forum/django-announce web
- https://groups.google.com/forum/#!forum/django-announce web
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2023-100.yaml web
- https://github.com/django/django package
- https://docs.djangoproject.com/en/4.2/releases/security web