CVE-2024-3772 Regular expression denial of service in Pydantic < 2.4.0

Medium 5.9 Published Updated

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.

PackageAffectedFixed in
pydantic PyPIAll versions1.10.13, 2.4.0
pydantic PyPIAll versions1.10.13
pydantic PyPIAll versions1.10.13
pydantic PyPIFrom 2.0.02.4.0
pydantic PyPIFrom 2.0.02.4.0
Linux distribution packages (3)
python-pydantic SUSE:Linux Enterprise Module for Public Cloud 15 SP4All versions1.10.8-150400.9.10.1
python-pydantic SUSE:Linux Enterprise Module for Python 3 15 SP6All versions1.10.8-150400.9.10.1
python-pydantic openSUSE:Leap 15.6All versions1.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.

All Fedoraproject Fedora vulnerabilities

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.

Is CVE-2024-3772 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free