CVE-2021-29510 — Infinite Loop in Pydantic
Severity
7.5HIGHNVD
EPSS
0.1%
top 79.88%
CISA KEV
Not in KEV
Exploit
No known exploits
Affected products
Timeline
PublishedMay 13
Latest updateDec 12
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(htt…
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitability: 3.9 | Impact: 3.6
Affected Packages6 packages
Also affects: Fedora 33, 34
Patches
🔴Vulnerability Details
4OSV▶
CVE-2021-29510: Pydantic is a data validation and settings management using Python type hinting↗2021-05-13
OSV▶
Use of "infinity" as an input to datetime and date fields causes infinite loop in pydantic↗2021-05-13
GHSA▶
Use of "infinity" as an input to datetime and date fields causes infinite loop in pydantic↗2021-05-13