Skip to content
DayZeroHub
Medium Not yet writtenCVSS 6.9CVE-2026-133421

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

pydantic pydantic

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-133421: medium-severity vulnerability (CVSS 6.9) in pydantic pydantic.

What happened

Original description from the source: 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.

Why it matters

Medium severity, CVSS 6.9.

Affected products and versions

pydantic pydantic <= 1.10.26

ProductVersionsFixed in
pydantic pydantic<= 1.10.26—

Action recommended by the source

See the official references for the fix or mitigation.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-1333

Relevant change history

  1. Published

    Preliminary advisory published.