CVE-2026-133421 Quadratic time timedelta validation in Pydantic V1
- 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)
| Who | Release | Status | Packages |
|---|---|---|---|
| Red Hat | 9 | deferred | linux-mcp-serverpkg:rpm/redhat/linux-mcp-server?distro=rhel-9 |
| Red Hat | 10 | deferred | linux-mcp-serverpkg:rpm/redhat/linux-mcp-server?distro=rhel-10 |
| Red Hat | ansible_automation_platform:2 | deferred | automation-controller, python-pydantic, python3.11-pydantic and 2 morepkg:rpm/redhat/automation-controllerpkg:rpm/redhat/python-pydanticpkg:rpm/redhat/python3.11-pydantic |
| Red Hat | satellite:6 | deferred | python3.12-pydanticpkg: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.