CVE-2026-133421: fallo de gravedad media en pydantic
Quadratic time timedelta validation in Pydantic V1
Publicada el
Aviso por correo cuando entre en el KEV, tenga PoC pública o suba de nota.
13Vexday Risk Score
Sin señal de explotación. Ningún artefacto público de explotación conocido hasta ahora.
ssvc Trackcvss 6.9epss 0.8%
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.
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
Productos afectados
pydantic · pydanticCVEs relacionadas — pydantic
En el mismo producto, de las más peligrosas a las menos.
CVE-2026-133424MEDIUMValidation bypass of aliased fields in TypedDict and dataclasses allowing extra dataEPSS 0.9%CVE-2026-133429MEDIUMValidation bypass of extra data keys in JSON model validationEPSS 0.9%CVE-2026-133428MEDIUMQuadratic time and memory multi-host URL validationEPSS 0.9%CVE-2026-133422MEDIUMQuadratic time unique_items list validation in Pydantic V1EPSS 0.8%CVE-2026-133426MEDIUMUnbounded exponent in Fraction validationEPSS 0.8%CVE-2026-133276MEDIUMValidation bypass of Pydantic V1 dataclasses allowing extra dataEPSS 0.5%
Referencias
https://github.com/pydantic/pydantic/blob/v1.10.26/pydantic/datetime_parse.py#L45https://github.com/pydantic/pydantic/commit/62791e66a9f8f118e465ed760c9e2ede9ae3055ehttps://github.com/pydantic/pydantic/releases/tag/v2.14.2https://github.com/pydantic/pydantic/security/advisories/GHSA-jfv7-ghgv-gx4x