PyPA Advisory Database
PYSEC-2026-1812
Pydantic regular expression denial of service
Details
Regular expression denial of service in Pydantic < 2.4.0, < 1.10.13 allows remote attackers to cause denial of service via a crafted email string.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | pydantic | All versions before 1.10.13 (fixed in 1.10.13) From 2.0.0 before 2.4.0 (fixed in 2.4.0) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-3772
- https://github.com/pydantic/pydantic/pull/7360
- https://github.com/pydantic/pydantic/commit/59d8f38fd6220e3917c53785dbc70317d6f8e631
- https://github.com/pydantic/pydantic/commit/e4393ae6145c4dadff739990bb0116c6dec3441b
- https://github.com/pydantic/pydantic
- https://lists.fedoraproject.org/archives/list/[email protected]/message/6JBZLMSH4GAZOVBMT2JUO2LXHY7M2ALI
- https://pypi.org/project/pydantic
- https://github.com/advisories/GHSA-mr82-8j83-vxmv