CVE-2024-3772 Regular expression denial of service in Pydantic < 2.4.0
Remote attackers can cause denial of service in Pydantic by submitting crafted email strings that trigger excessive regex processing.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-3772?
CVE-2024-3772 is a medium-severity denial of service vulnerability in Fedoraproject Fedora, published on 15 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-1333
Which versions are affected by CVE-2024-3772?
5 open source packages ship an affected version, including pydantic. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
pydantic PyPI | All versions | 1.10.13, 2.4.0 |
pydantic PyPI | All versions | 1.10.13 |
pydantic PyPI | All versions | 1.10.13 |
pydantic PyPI | From 2.0.0 | 2.4.0 |
pydantic PyPI | From 2.0.0 | 2.4.0 |
Linux distribution packages (3)
python-pydantic SUSE:Linux Enterprise Module for Public Cloud 15 SP4 | All versions | 1.10.8-150400.9.10.1 |
python-pydantic SUSE:Linux Enterprise Module for Python 3 15 SP6 | All versions | 1.10.8-150400.9.10.1 |
python-pydantic openSUSE:Leap 15.6 | All versions | 1.10.8-150400.9.10.1 |
Products include Fedoraproject Fedora, Pydantic Pydantic.
How do I fix CVE-2024-3772?
Upgrade pydantic to a fixed version for your release line: 1.10.13 or 2.4.0.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2024-3772 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-3772 exists.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as CLSA-2025-1757895135, CLSA-2026-1789456962, DEBIAN-CVE-2024-3772, GHSA-mr82-8j83-vxmv, PYSEC-2026-1812, ROOT-APP-PYPI-CVE-2024-3772 and 3 more.