CVE catalog

CVE-2021-29510

pydantic: CVE-2021-29510

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.97% · Oct 23, 2026

Pydantic is a data validation and settings management using Python type hinting. In affected versions passing either `'infinity'`, `'inf'` or `float('inf')` (or their negatives) to `datetime` or `date` fields causes validation to run forever with 100% CPU usage (on one CPU). Pydantic has been patched with fixes available in the following versions: v1.8.2, v1.7.4, v1.6.2. All these versions are available on pypi(https://pypi.org/project/pydantic/#history), and will be available on conda-forge(https://anaconda.org/conda-forge/pydantic) soon. See the changelog(https://pydantic-docs.helpmanual.io/) for details. If you absolutely can't upgrade, you can work around this risk using a validator(https://pydantic-docs.helpmanual.io/usage/validators/) to catch these values. This is not an ideal solution (in particular you'll need a slightly different function for datetimes), instead of a hack like this you should upgrade pydantic. If you are not using v1.8.x, v1.7.x or v1.6.x and are unable to upgrade to a fixed version of pydantic, please create an issue at https://github.com/samuelcolvin/pydantic/issues requesting a back-port, and we will endeavour to release a patch for earlier versions of pydantic.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpydanticsid2.14.1-1fixed
Debianpydanticforky2.13.5-2fixed
Debianpydantictrixie2.10.6-2fixed
Debianpydanticbookworm1.10.4-1+deb12u1fixed
Opensusepython-pydantictumbleweed2.13.4-2.1fixed
Ubuntupydanticpro0.30.1-1vulnerable
Ubuntupydanticpro1.2-1vulnerable
Ubuntupydanticpro1.2-1ubuntu0.1~esm1fixed
Ubuntupydanticpro0.30.1-1vulnerable
Ubuntupydanticpro1.2-1vulnerable
Ubuntupydanticpro1.2-1ubuntu0.1~esm1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpydanticsourcesid1.7.4-1not yet assignedNot reported[988480]
Debianpydanticsourceforky1.7.4-1not yet assignedNot reported[988480]
Debianpydanticsourcetrixie1.7.4-1not yet assignedNot reported[988480]
Debianpydanticsourcebookworm1.7.4-1not yet assignedNot reported[988480]
Opensusepython-pydanticrpmtumbleweed2.13.4-2.1Not reportedOPENSUSE-SU-2026:11424-1Not reported
Ubuntupydanticdebpro1.2-1ubuntu0.1~esm1Not reportedUSN-6553-1Not reported
Ubuntupydanticdebpro1.2-1ubuntu0.1~esm1Not reportedUBUNTU-CVE-2021-29510Not reported

[Debian bug #988480]

OpenFactory catalog packages

[openSUSE Tumbleweed]

  • Source package: [python-pydantic]

    Details (1)
    • 2.13.4-2.1 · noarch · tumbleweed

      Unknown · Fixed: 2.13.4-2.1

      Version impact unknown

      dsa · python-pydantic · opensuse · tumbleweed

  • Source package: [python-pydantic]

    Details (1)
    • 2.13.4-2.1 · noarch · tumbleweed

      Unknown · Fixed: 2.13.4-2.1

      Version impact unknown

      dsa · python-pydantic · opensuse · tumbleweed

[Debian 12 (Bookworm)]

  • Source package: [pydantic]

    Details (2)
    • 1.10.4-1+deb12u1 · all · bookworm

      Fixed · Fixed: 1.7.4-1

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

    • 1.10.4-1+deb12u1 · all · bookworm

      Fixed · Fixed: 1.7.4-1

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

[Debian 13 (Trixie)]

  • Source package: [pydantic]

    Details (2)
    • 2.10.6-2 · amd64 · trixie

      Fixed · Fixed: 1.7.4-1

      dsa · pydantic · debian · 13

    • 2.10.6-2 · arm64 · trixie

      Fixed · Fixed: 1.7.4-1

      dsa · pydantic · debian · 13

Observed:

References