What’s Vulnerable › Vulnerabilities
CVE-2024-3772: Regular expression denial of service in Pydantic < 2.4.0
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.0% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2024-04-15 · updated 2026-06-17
- Weakness: CWE-1333
Description
Regular expression denial of service in Pydanic < 2.4.0, < 1.10.13 allows remote attackers to cause denial of service via a crafted email string.
Affected products
- Fedoraproject Fedora: 38
- Pydantic: before 1.10.13; from 2.0 before 2.4.0 — fixed in 1.10.13, 2.4.0
- Pypi Pydantic: before 1.10.13; from 2.0.0 before 2.4.0; 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6 (+106) — fixed in 1.10.13, 2.4.0
How to fix
Upgrade to a fixed version: Pydantic 1.10.13, 2.4.0; Pypi Pydantic 1.10.13, 2.4.0. Check the vendor advisory for mitigations.
References
- https://github.com/pydantic/pydantic/pull/7360
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6JBZLMSH4GAZOVBMT2JUO2LXHY7M2ALI/
- https://github.com/pydantic/pydantic/pull/7360
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6JBZLMSH4GAZOVBMT2JUO2LXHY7M2ALI/
Get alerted when CVE-2024-3772 or the next vulnerability affects your stack