CVE-2026-133421
Pydantic denial of service in ISO 8601 duration parsing
A remote, unauthenticated attacker can send a long crafted duration string to freeze processing for seconds.
Texto original en inglés · Ver en español
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
Fuente: CNA
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche 1.10.27 | pydantic · -22 d desde divulgación | |
| Divulgación | Publicada | CVE-2026-133421 divulgada · CVSS 6.9 (CNA) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Divulgación | Evaluación SSVC | CISA-ADP · explotación ninguna | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Fuente: NIST NVD | Registro visto por primera vez en NIST NVD | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Pydantic is affected by a bug where validating an untrusted ISO 8601 duration string into a timedelta field takes quadratic time, so an input of a few dozen kilobytes can take seconds. An attacker can exploit this remotely, without logging in, to cause a denial of service.
Descripción original del registro (Pydantic)
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.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
pypipydantic |
Corregida | 1.10.27 | -22 d | 2.14.4 no afectada |
1.10.27Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/pydantic/pydantic/security/advisories/GHSA-jfv7-ghgv-gx4xhttps://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.2Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
