PyPI: pydantic

CVE-2024-3772

Safety vulnerability ID: SFTY-20240415-70183

Safety legacy ID: pyup.io-71590

Regular expression denial of service in Pydanic affected versions allows remote attackers to cause denial of service via a crafted email string.

Created at: May 22, 2026Updated at: May 22, 2026

Overview

Pydantic regular expression denial of service

Advisory

Regular expression denial of service in Pydanic affected versions allows remote attackers to cause denial of service via a crafted email string.

Affected Package

Affecting pydantic package, versions
>=2.0.0,<2.4.0
<1.10.13

Also affects

---

How to Fix

Upgrade
pydantic
to
2.4.0
1.10.13
or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more