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

- Severity: Medium 6.9 (CVSS:4.0, scored by Pydantic) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.82%, higher than 58% of CVEs (2026-12-01)
- Published: 2026-11-20T07:33:56.729Z
- Modified: 2026-11-23T15:41:46.570Z
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Pydantic

## 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.

(As written by CVE List.)

## Affected

- pydantic: up to 1.10.26

## References

- <https://github.com/pydantic/pydantic/security/advisories/GHSA-jfv7-ghgv-gx4x> (vendor-advisory)
- <https://github.com/pydantic/pydantic/blob/v1.10.26/pydantic/datetime_parse.py#L45>
- <https://github.com/pydantic/pydantic/commit/62791e66a9f8f118e465ed760c9e2ede9ae3055e>
- <https://github.com/pydantic/pydantic/releases/tag/v2.14.2>

## Sources

- CVE List: [CVE-2026-133421](https://www.cve.org/CVERecord?id=CVE-2026-133421), CVE Terms of Use, modified 2026-11-20
- NVD: [CVE-2026-133421](https://nvd.nist.gov/vuln/detail/CVE-2026-133421), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2026-133421 · Whole record: https://cve.day/CVE-2026-133421.json · Rebuilt by cve.day 2026-11-25T22:59:52.362Z
