{"id":"CVE-2026-133421","summary":"Quadratic time timedelta validation in Pydantic V1","details":"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.\n\nThe 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.\n\nThe issue was fixed in commit 62791e66a9f8f118e465ed760c9e2ede9ae3055e. Users relying on the pydantic.v1 namespace in Pydantic V2 should upgrade to 2.14.2 or later.\n\nImpact: denial of service through validation of untrusted input. Affected are applications validating untrusted strings into timedelta fields.","aliases":["GHSA-jfv7-ghgv-gx4x"],"modified":"2026-11-20T09:00:09.113536048Z","published":"2026-11-20T07:33:56.729Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/133xxx/CVE-2026-133421.json","cna_assigner":"Pydantic","cwe_ids":["CWE-1333"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/133xxx/CVE-2026-133421.json"},{"type":"PACKAGE","url":"https://github.com/pydantic/pydantic"},{"type":"WEB","url":"https://github.com/pydantic/pydantic/blob/v1.10.26/pydantic/datetime_parse.py#L45"},{"type":"FIX","url":"https://github.com/pydantic/pydantic/commit/62791e66a9f8f118e465ed760c9e2ede9ae3055e"},{"type":"WEB","url":"https://github.com/pydantic/pydantic/releases/tag/v2.14.2"},{"type":"ADVISORY","url":"https://github.com/pydantic/pydantic/security/advisories/GHSA-jfv7-ghgv-gx4x"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-133421"},{"type":"WEB","url":"https://pypi.org"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/pydantic/pydantic","events":[{"introduced":"0"},{"last_affected":"d771df98f3194ea2695a6a893e318b32381032c3"},{"fixed":"62791e66a9f8f118e465ed760c9e2ede9ae3055e"},{"fixed":"aa540acc29960fb394312cf97d888c99f9686814"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"0"},{"last_affected":"1.10.26"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"62791e66a9f8f118e465ed760c9e2ede9ae3055e"}]},{"original_tag":"v2.14.2","range":[{"fixed":"aa540acc29960fb394312cf97d888c99f9686814"}],"source":"REFERENCES_TAG"}]}}],"versions":["v2.14.1","core-v2.50.1","v1.10.26","v2.14.0","core-v2.50.0","v2.14.0b2","core-v2.49.0","v2.14.0b1","core-v2.48.0","v2.14.0a1","v2.13.0","core-v2.46.0","v2.13.0b3","core-v2.45.0","core-v2.44.0","core-v2.43.0","v2.13.0b2","v2.13.0b1","core-v2.42.0","v1.10.25","v1.10.24","v2.12.0","v2.12.0b1","v1.10.23","v1.10.22","v2.12.0a1","v1.10.21","v2.11.3","v2.11.2","v2.11.1","v2.11.0","v2.11.0b2","v2.11.0b1","v2.11.0a2","v2.11.0a1","v1.10.20","v1.10.19","v2.10.0b2","v2.10.0b1","v1.10.18","v2.9.0","v2.9.0b2","v2.9.0b1","v2.8.0","v2.8.0b1","v2.7.1","v2.7.0","v2.7.0b1","v1.10.14","v2.6.0b1","v2.5.0","v2.5.0b1","v1.10.13","v2.4.2","v2.4.1","v2.4.0","v2.3.0","v2.2.2","v2.2.1","v2.2.0","v1.10.12","v2.1.1","v2.1.0","v2.0.3","v1.10.11","v2.0.2","v2.0.1","v1.10.10","v2.0","v2.0b3","v1.10.9","v2.0b2","v2.0b1","v1.10.8","v2.0a4","v2.0a3","v2.0a2","v1.10.7","v2.0a1","v1.10.6","v1.10.5","v1.10.4","v1.10.3","v1.10.2","v1.10.1","v1.10.0","v1.10.0b1","v1.10.0a2","v1.10a1","v1.10.0a1","v1.9.0","v1.9.0a2","v1.9.0a1","v1.6.1","v1.8.1","v1.8","v1.7.2","v1.7.1","v1.7","v1.6","v1.5.1","v1.5","v1.4","v1.3","v1.2","v1.1","v1.0","v1.0b2","v1.0b1","v0.32","v0.31.1","v0.31","v0.30.1","v0.30","v0.29","v0.28","v0.27","v0.26","v0.25","v0.24","v0.23","v0.22","v0.21","v0.20.1","v0.20","v0.20a1","v0.19","v0.18.2","v0.18.1","v0.18","V0.17","v0.16.1","v0.16","v0.15","v0.14","v0.13.1","v0.13","v0.12.1","v0.12","v0.11.2","v0.11.1","v0.11","v0.10","v0.9.1","v0.9","v0.8","v0.7.1","v0.7","v0.6.4","v0.6.3","v0.6.2","v0.6.1","v0.6","v0.5","v0.4","v0.3","v0.2.1","v0.2","v0.1","v0.0.8","v0.0.7","v0.0.6","v0.0.5","v0.0.4","v0.0.3","v0.0.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-133421.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}