Inefficient regular expression complexity in pydantic - CVE-2026-133421
Published: November 25, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service in applications that validate untrusted input as timedelta values.
The vulnerability exists due to overlapping matches in the ISO 8601 duration regular expression when the validator parses duration strings, causing quadratic backtracking. A remote attacker can submit crafted input to a timedelta field to consume excessive CPU time and degrade service availability.
Affected software
Fedora
python-pydantic
How to mitigate CVE-2026-133421
python-pydantic - update to 1.10.27-1.el9