BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2021-29510 in Fedoraproject Fedora and 1 more product

High 7.5

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

Affects 2 products from 2 vendors. Facts below cite their sources.

CVSS 3.17.5
EPSS1.0%
EPSS percentile61th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Fedoraproject Fedora 33 34
Pydantic Pydantic < 1.6.2 ≥ 1.7, < 1.7.4 ≥ 1.8, < 1.8.2

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

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

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2021-29510
BreachSpider IDBS-2021-GLOBAL-078838-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published2021-05-13
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-835: CWE-835

Analysis AI-written, not human-reviewed

CVE-2021-29510 affects Pydantic versions prior to 1.8.2, 1.7.4, and 1.6.2, causing infinite CPU usage when specific values are passed to datetime or date fields.

An attacker can exploit this vulnerability by passing 'infinity', 'inf', or float('inf') (or their negatives) to datetime or date fields in Pydantic, leading to a denial of service condition.

Questions

What is CVE-2021-29510?

CVE-2021-29510 affects Pydantic versions prior to 1.8.2, 1.7.4, and 1.6.2, causing infinite CPU usage when specific values are passed to datetime or date fields.

What is the CVSS score for CVE-2021-29510?

CVE-2021-29510 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. EPSS: 1.0%.

Is CVE-2021-29510 actively exploited?

No confirmed active exploitation of CVE-2021-29510 as of 2026-09-25.

How do I remediate CVE-2021-29510?

Priority: HIGH.

What systems are affected by CVE-2021-29510?

CVE-2021-29510 affects Fedoraproject Fedora; Pydantic Pydantic.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Fedoraproject","product":"Fedora","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.