Skip to content
RedCVE

CVE-2026-133421Pydantic regular expression denial of service (ReDoS)

pydanticPublished:

CVSS score

6.9

Medium

CVSS 4.0 from 7cec5f2f-3032-4006-8740-31f605ffab5f

Exploit probability (EPSS)

0.82%

0.82% chance of exploitation in the next 30 days, higher than 58.3% of all CVEs.

CISA KEV

Not in KEV

No confirmed exploitation reported by CISA so far.

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

Source: NVD · CNA: 7cec5f2f-3032-4006-8740-31f605ffab5f

How to fix it, step by step

  1. Check whether you're affected

    Find every system running Pydantic and compare its version with the affected versions.

  2. Watch for an official fix

    No fix or advisory is listed in the official record yet. Follow the vendor's security announcements; this page updates when one is published.

Was this useful?

How it can be exploited

Attack vector
Network
Attack complexity
Low
Attack requirements
None
Privileges required
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
Low

Values in red make the vulnerability easier to exploit or more damaging. 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

Affected products

Affected productsVersions
pydantic Pydantic≤ 1.10.26

Weakness

  • CWE-1333 regular expression denial of service (ReDoS)

Timeline

  1. Published:
  2. Last modified:

Frequently asked questions

Is CVE-2026-133421 being exploited?

There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.8% probability of exploitation in the next 30 days.

What is the CVSS score of CVE-2026-133421?

CVE-2026-133421 has a CVSS 4.0 base score of 6.9 (medium).

Which versions are affected?

Pydantic Pydantic (≤ 1.10.26)

Is there a patch for CVE-2026-133421?

No patch is linked in the official record yet. Watch the vendor's security advisories.

References

Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.