GHSA-5jqp-qgf6-3pvh · Severity: medium · Ecosystem: pip — Use of "infinity" as an input to datetime and date fields causes infinite loop in pydantic
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.
Conclusion & alert: CVE-2021-29510 is rated Low Risk (34.1/100): CVSS Low severity, with medium exploitation likelihood (EPSS 0.97%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.07% | 0.97% | +0.90% |
| 2 | 2025-11-21 | 0.27% | 0.07% | -0.20% |
| 3 | 2025-11-18 | — | 0.27% | — |
Full EPSS history (12 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 3.3 | 3.1 | LOW |
|
1.8 | 1.4 | [email protected] |
| 7.5 | 3.1 | HIGH |
|
3.9 | 3.6 | [email protected] |
| 5.0 | 2.0 | MEDIUM |
|
10.0 | 2.9 | [email protected] |
GHSA-5jqp-qgf6-3pvh · Severity: medium · Ecosystem: pip — Use of "infinity" as an input to datetime and date fields causes infinite loop in pydantic
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2021-29510 not yet assigned priority: Debian including 1 source packages (pydantic), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. | https://security-tracker.debian.org/tracker/CVE-2021-29510 |
ubuntu
|
medium | CVE-2021-29510 medium priority: Ubuntu including 1 source packages (pydantic), 15 status rows across 15 suites (bionic, focal, groovy, hirsute, impish, jammy, kinetic, lunar, mantic, noble, oracular, plucky, trusty, upstream, xenial): not-affected 6, ignored 5, DNE 2, released 2. | https://ubuntu.com/security/CVE-2021-29510 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| pydantic | pydantic | < 1.6.2 | cpe:2.3:a:pydantic:pydantic:*:*:*:*:*:*:*:* |
| pydantic | pydantic | >= 1.7, < 1.7.4 | cpe:2.3:a:pydantic:pydantic:*:*:*:*:*:*:*:* |
| pydantic | pydantic | >= 1.8, < 1.8.2 | cpe:2.3:a:pydantic:pydantic:*:*:*:*:*:*:*:* |
| fedoraproject | fedora | 33 | cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* |
| fedoraproject | fedora | 34 | cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* |