CVE-2026-133421
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
Debian Mixed 4 releases
| Version | Package | Status | Fixed in |
|---|---|---|---|
| trixie | pydantic |
Fixed | 2.4.2-1 |
| sid | pydantic |
Fixed | 2.4.2-1 |
| forky | pydantic |
Fixed | 2.4.2-1 |
| bookworm | pydantic |
Affected | — |
SUSE Tracked 1 release
| Version | Package | Status | Fixed in |
|---|---|---|---|
| — | — | Unknown | — |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| pydantic | pydantic | {"endIncluding":"1.10.26"} | |
References
- https://github.com/pydantic/pydantic/blob/v1.10.26/pydantic/datetime_parse.py#L45
- https://github.com/pydantic/pydantic/commit/62791e66a9f8f118e465ed760c9e2ede9ae3055e
- https://github.com/pydantic/pydantic/releases/tag/v2.14.2
- https://github.com/pydantic/pydantic/security/advisories/GHSA-jfv7-ghgv-gx4x
- https://security-tracker.debian.org/tracker/CVE-2026-133421
- https://www.suse.com/security/cve/CVE-2026-133421.html
CWEs
CWE-1333
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.