CVE-2026-133421 Quadratic time timedelta validation in Pydantic V1

Medium 6.9 Published Updated
Exploited in the wild
Not known
Fix
None listed

What is CVE-2026-133421?

CVE-2026-133421 is a medium-severity vulnerability in pydantic, published on 20 Nov 2026.

Official description

Validating an untrusted ISO 8601 duration string into a timedelta field with Pydantic V1 takes quadratic time: an input of a few dozen kilobytes takes seconds to validate.

The iso8601_duration_re regular expression used to parse ISO 8601 durations (in pydantic/datetime_parse.py) contains an unescaped ".", which also matches digits. On a string of digits, the repeated groups overlap and the regex engine backtracks in quadratic time.

The issue was fixed in commit 62791e66a9f8f118e465ed760c9e2ede9ae3055e. Users relying on the pydantic.v1 namespace in Pydantic V2 should upgrade to 2.14.2 or later.

Impact: denial of service through validation of untrusted input. Affected are applications validating untrusted strings into timedelta fields.

Weakness: CWE-1333

Which versions are affected by CVE-2026-133421?

Status by vendor (4)
WhoReleaseStatusPackages
Red Hat9deferredlinux-mcp-server
pkg:rpm/redhat/linux-mcp-server?distro=rhel-9
Red Hat10deferredlinux-mcp-server
pkg:rpm/redhat/linux-mcp-server?distro=rhel-10
Red Hatansible_automation_platform:2deferredautomation-controller, python-pydantic, python3.11-pydantic and 2 more
pkg:rpm/redhat/automation-controller
pkg:rpm/redhat/python-pydantic
pkg:rpm/redhat/python3.11-pydantic
Red Hatsatellite:6deferredpython3.12-pydantic
pkg:rpm/redhat/python3.12-pydantic

How do I fix CVE-2026-133421?

No fix has been published for CVE-2026-133421 yet. Limit exposure of the affected software until one is available.

Is CVE-2026-133421 being exploited?

There is no known exploitation of CVE-2026-133421 in the wild and no public exploit code.

Sources

Also known as GHSA-jfv7-ghgv-gx4x.

Is CVE-2026-133421 in your software?

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

Check your SBOMs for free