
CVE catalog
CVE-2021-29510
pydantic: CVE-2021-29510
- Severity
- High · CVSS 7.5
CVSS: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.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | pydantic | sid | 2.14.1-1 | fixed |
| Debian | pydantic | forky | 2.13.5-2 | fixed |
| Debian | pydantic | trixie | 2.10.6-2 | fixed |
| Debian | pydantic | bookworm | 1.10.4-1+deb12u1 | fixed |
| Opensuse | python-pydantic | tumbleweed | 2.13.4-2.1 | fixed |
| Ubuntu | pydantic | pro | 0.30.1-1 | vulnerable |
| Ubuntu | pydantic | pro | 1.2-1 | vulnerable |
| Ubuntu | pydantic | pro | 1.2-1ubuntu0.1~esm1 | fixed |
| Ubuntu | pydantic | pro | 0.30.1-1 | vulnerable |
| Ubuntu | pydantic | pro | 1.2-1 | vulnerable |
| Ubuntu | pydantic | pro | 1.2-1ubuntu0.1~esm1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | pydantic | source | sid | 1.7.4-1 | not yet assigned | Not reported | [988480] |
| Debian | pydantic | source | forky | 1.7.4-1 | not yet assigned | Not reported | [988480] |
| Debian | pydantic | source | trixie | 1.7.4-1 | not yet assigned | Not reported | [988480] |
| Debian | pydantic | source | bookworm | 1.7.4-1 | not yet assigned | Not reported | [988480] |
| Opensuse | python-pydantic | rpm | tumbleweed | 2.13.4-2.1 | Not reported | OPENSUSE-SU-2026:11424-1 | Not reported |
| Ubuntu | pydantic | deb | pro | 1.2-1ubuntu0.1~esm1 | Not reported | USN-6553-1 | Not reported |
| Ubuntu | pydantic | deb | pro | 1.2-1ubuntu0.1~esm1 | Not reported | UBUNTU-CVE-2021-29510 | Not reported |
OpenFactory catalog packages
[openSUSE Tumbleweed]
- [python313-pydantic]Unknown
Source package: [python-pydantic]
Details (1)
2.13.4-2.1· noarch · tumbleweedUnknown · Fixed:
2.13.4-2.1Version impact unknown
dsa · python-pydantic · opensuse · tumbleweed
- [python314-pydantic]Unknown
Source package: [python-pydantic]
Details (1)
2.13.4-2.1· noarch · tumbleweedUnknown · Fixed:
2.13.4-2.1Version impact unknown
dsa · python-pydantic · opensuse · tumbleweed
[Debian 12 (Bookworm)]
- [python3-pydantic]Fixed
Source package: [pydantic]
Details (2)
1.10.4-1+deb12u1· all · bookwormFixed · Fixed:
1.7.4-1dsa · pydantic · debian · bookworm; dsa · pydantic · debian · 12
1.10.4-1+deb12u1· all · bookwormFixed · Fixed:
1.7.4-1dsa · pydantic · debian · bookworm; dsa · pydantic · debian · 12
[Debian 13 (Trixie)]
- [python3-pydantic]Fixed
Source package: [pydantic]
Details (2)
2.10.6-2· amd64 · trixieFixed · Fixed:
1.7.4-1dsa · pydantic · debian · 13
2.10.6-2· arm64 · trixieFixed · Fixed:
1.7.4-1dsa · pydantic · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2024_11254-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-29510]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2021-29510]
- [https://osv.dev/vulnerability/USN-6553-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:11424-1]
- [https://security-tracker.debian.org/tracker/CVE-2021-29510]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [SUSE security advisories and VEX]