StraitOfVuln
Latest / CVE-2026-133421

CVE-2026-133421

MediumCVSS 6.9 (v4.0)Awaiting Analysis
CVE.org ↗NVD ↗

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.

Details

CVE ID
CVE-2026-133421
Published / updated
20 Nov 2026, 08:18 UTC · last modified 23 Nov 2026, 15:41 UTC
Severity
MEDIUM
CVSS score
6.9 · v4.0 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X · Attack vector: Network
Affected vendor
pydantic
Affected products
pydantic
Affected versions
pydantic: up to 1.10.26
From the publisher's (CNA) CVE record. NVD analysis is pending.
Fixed versions
Not stated in the data. Check the vendor advisory.
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
0.82% probability of exploitation in the next 30 days · 59% percentile (03 Dec 2026)
Weakness
Remediation
See the vendor advisory below.
Source (CNA)
7cec5f2f-3032-4006-8740-31f605ffab5f