MEDIUM5.9
PYSEC-2026-1812
Pydantic regular expression denial of service
Quick fix
PYSEC-2026-1812 — pydantic: upgrade to the fixed version with the command below.
pip install --upgrade 'pydantic>=1.10.13'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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-3772[ADVISORY]
- https://github.com/pydantic/pydantic/pull/7360[WEB]
- https://github.com/pydantic/pydantic/commit/59d8f38fd6220e3917c53785dbc70317d6f8e631[WEB]
- https://github.com/pydantic/pydantic/commit/e4393ae6145c4dadff739990bb0116c6dec3441b[WEB]
- https://github.com/pydantic/pydantic[PACKAGE]
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6JBZLMSH4GAZOVBMT2JUO2LXHY7M2ALI[WEB]
- https://pypi.org/project/pydantic[PACKAGE]
- https://github.com/advisories/GHSA-mr82-8j83-vxmv[ADVISORY]