Catalogue CVE

CVE-2026-133421

pydantic affected and fixed versions

[Catalogue CVE]

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.

Gravité
Medium · CVSS 4.0 · 6.9CVSS: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
Published
Source
[NVD] · [CVE record]
EPSS
0.82% · Dec 4, 2026

Projects and upstream resources

Reported versions and fixes

Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.

Distribution / releasePackageVersionStatusSource
Debiantrixiepydantic2.10.6-2Fixed[CVE-2026-133421]
Debiantrixiepydantic2.4.2-1FixedDistribution-reported fixed boundary[CVE-2026-133421]
Debiansidpydantic2.14.1-1Fixed[CVE-2026-133421]
Debiansidpydantic2.4.2-1FixedDistribution-reported fixed boundary[CVE-2026-133421]
Debianforkypydantic2.14.1-1Fixed[CVE-2026-133421]
Debianforkypydantic2.4.2-1FixedDistribution-reported fixed boundary[CVE-2026-133421]
More observations (8)
Distribution / releasePackageVersionStatusSource
DebianbookwormpydanticNot reportedAffectedDistribution reports no fix[CVE-2026-133421]
Debianbookwormpydantic1.10.4-1+deb12u1Affected[CVE-2026-133421]
Ubuntu24.04pydantic1.10.13-0ubuntu1Affected[UBUNTU-CVE-2026-133421]
Ubuntu24.04pydantic1.10.14-1Affected[UBUNTU-CVE-2026-133421]
Ubuntu24.04pydantic1.10.4-1ubuntu1Affected[UBUNTU-CVE-2026-133421]
Ubuntupropydantic1.7.4-1Affected[UBUNTU-CVE-2026-133421]
Ubuntupropydantic1.8.2-1Affected[UBUNTU-CVE-2026-133421]
Ubuntupropydantic1.8.2-1ubuntu0.1~esm1Affected[UBUNTU-CVE-2026-133421]

Publisher notes

[bookworm] pydantic: Minor issue, DoS

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [python3-pydantic]Affectée

    Paquet source: [pydantic]

    Détails (2)
    • 1.10.4-1+deb12u1 · all · bookworm

      Affectée

      dsa · pydantic · debian · bookworm; pypi · pydantic · debian · 12

    • 1.10.4-1+deb12u1 · all · bookworm

      Affectée

      dsa · pydantic · debian · bookworm; pypi · pydantic · debian · 12

[Debian 13 (Trixie)]

  • [python3-pydantic]Corrigée

    Paquet source: [pydantic]

    Détails (2)
    • 2.10.6-2 · amd64 · trixie

      Corrigée · Corrigée: 2.4.2-1

      pypi · pydantic · debian · 13

    • 2.10.6-2 · arm64 · trixie

      Corrigée · Corrigée: 2.4.2-1

      pypi · pydantic · debian · 13

Observé:

Références