CVE & CISA-KEV Catalog

CVE-2021-29510

LOW
3.3
CVSS v3
NVD

Description

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.

How to fix

Remediation Available
pydanticDebian
Fixed in:1.7.4-1CVE-2021-29510
Fixed in:1.7.4-1CVE-2021-29510
Fixed in:1.7.4-1CVE-2021-29510
Fixed in:1.7.4-1CVE-2021-29510
pydanticUbuntu
Fixed in:1.2-1ubuntu0.1~esm1USN-6553-1
python3-pydanticUbuntu
Fixed in:1.2-1ubuntu0.1~esm1USN-6553-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityLow

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L

Exploit Intelligence

0.97%probability of exploitation in 30 days
58thpercentile

Moderate risk: more likely to be exploited than 58% of all known CVEs.

References

Related Vulnerabilities

Other CWE-835 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2020-13935High7.588%-Fix
CVE-2020-36227High7.578%-Fix
CVE-2022-0778High7.571%-Fix
CVE-2019-14241High7.570%--
CVE-2017-16944High7.563%-Fix
CVE-2024-20353High8.663%KEV-
Embed a live status badge for CVE-2021-29510
CVE-2021-29510 severity badge

Markdown

[![CVE-2021-29510](https://tridentstack.com/cve/badge/CVE-2021-29510.svg)](https://tridentstack.com/cve/CVE-2021-29510)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-29510"><img src="https://tridentstack.com/cve/badge/CVE-2021-29510.svg" alt="CVE-2021-29510"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-12-08.