{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-29510","published":"2021-05-13T19:15:08.023000Z","last_modified":"2026-06-17T03:47:48.193000Z","status":"Modified","cvss":{"version":"3.1","score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-835"],"cpes":[{"criteria":"cpe:2.3:a:pydantic:pydantic:*:*:*:*:*:*:*:*","part":"a","vendor":"pydantic","product":"pydantic","version_end_excluding":"1.6.2"},{"criteria":"cpe:2.3:a:pydantic:pydantic:*:*:*:*:*:*:*:*","part":"a","vendor":"pydantic","product":"pydantic","version_start_including":"1.7","version_end_excluding":"1.7.4"},{"criteria":"cpe:2.3:a:pydantic:pydantic:*:*:*:*:*:*:*:*","part":"a","vendor":"pydantic","product":"pydantic","version_start_including":"1.8","version_end_excluding":"1.8.2"},{"criteria":"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","part":"o","vendor":"fedoraproject","product":"fedora","version":"33"},{"criteria":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","part":"o","vendor":"fedoraproject","product":"fedora","version":"34"}],"cpes_truncated":false,"vendors":["pydantic","fedoraproject"],"products":["pydantic/pydantic","fedoraproject/fedora"],"epss":{"score":0.00975,"percentile":0.6309,"date":"2026-12-01","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-5jqp-qgf6-3pvh","ecosystem":"PyPI","name":"pydantic","purl":"pkg:pypi/pydantic","ranges":[{"introduced":"0","fixed":"1.6.2"}],"versions":["0.0.1","0.0.2","0.0.3","0.0.4","0.0.5","0.0.6","0.0.7","0.0.8","0.1","0.10","0.11","0.11.1","0.11.2","0.12","0.12.1","0.13","0.13.1","0.14","0.15","0.16","0.16.1","0.17","0.18","0.18.1","0.18.2","0.19","0.2","0.2.1","0.20","0.20.1","0.20a1","0.21","0.22","0.23","0.24","0.25","0.26","0.27","0.27a1","0.28","0.29","0.3","0.30","0.30.1","0.31","0.31.1","0.32","0.32.1","0.32.2","0.4","0.5","0.6","0.6.1","0.6.2","0.6.3","0.6.4","0.7","0.7.1","0.8","0.9","0.9.1","1.0","1.0b1","1.0b2","1.1","1.1.1","1.2","1.3","1.4","1.5","1.5.1","1.6","1.6.1"],"versions_truncated":false},{"advisory":"GHSA-5jqp-qgf6-3pvh","ecosystem":"PyPI","name":"pydantic","purl":"pkg:pypi/pydantic","ranges":[{"introduced":"1.8","fixed":"1.8.2"}],"versions":["1.8","1.8.1"],"versions_truncated":false},{"advisory":"GHSA-5jqp-qgf6-3pvh","ecosystem":"PyPI","name":"pydantic","purl":"pkg:pypi/pydantic","ranges":[{"introduced":"1.7","fixed":"1.7.4"}],"versions":["1.7","1.7.1","1.7.2","1.7.3"],"versions_truncated":false},{"advisory":"PYSEC-2021-47","ecosystem":"PyPI","name":"pydantic","purl":"pkg:pypi/pydantic","ranges":[{"introduced":"0","fixed":"1.6.2"},{"introduced":"1.7","fixed":"1.7.4"},{"introduced":"1.8","fixed":"1.8.2"}],"versions":["0.0.1","0.0.2","0.0.3","0.0.4","0.0.5","0.0.6","0.0.7","0.0.8","0.1","0.10","0.11","0.11.1","0.11.2","0.12","0.12.1","0.13","0.13.1","0.14","0.15","0.16","0.16.1","0.17","0.18","0.18.1","0.18.2","0.19","0.2","0.2.1","0.20","0.20.1","0.20a1","0.21","0.22","0.23","0.24","0.25","0.26","0.27","0.27a1","0.28","0.29","0.3","0.30","0.30.1","0.31","0.31.1","0.32","0.32.1","0.32.2","0.4","0.5","0.6","0.6.1","0.6.2","0.6.3","0.6.4","0.7","0.7.1","0.8","0.9","0.9.1","1.0","1.0b1","1.0b2","1.1","1.1.1","1.2","1.3","1.4","1.5","1.5.1","1.6","1.6.1","1.7","1.7.1","1.7.2","1.7.3","1.8","1.8.1","v1.6.1","v1.8.1","v1.8","v1.7.2","v1.7.1","v1.7","v1.6","v1.5.1","v1.5","v1.4","v1.3","v1.2","v1.1","v1.0","v1.0b2","v1.0b1","v0.32","v0.31.1","v0.31","v0.30.1","v0.30","v0.29","v0.28","v0.27","v0.26","v0.25","v0.24","v0.23","v0.22","v0.21","v0.20.1","v0.20","v0.20a1","v0.19","v0.18.2","v0.18.1","v0.18","V0.17","v0.16.1","v0.16","v0.15","v0.14","v0.13.1","v0.13","v0.12.1","v0.12","v0.11.2","v0.11.1","v0.11","v0.10","v0.9.1","v0.9","v0.8","v0.7.1","v0.7","v0.6.4","v0.6.3","v0.6.2","v0.6.1","v0.6","v0.5","v0.4","v0.3","v0.2.1","v0.2","v0.1","v0.0.8","v0.0.7","v0.0.6","v0.0.5","v0.0.4","v0.0.3","v0.0.2"],"versions_truncated":false}],"severity":"high","priority_score":60,"links":{"html_es":"/es/cve/CVE-2021-29510/","html_en":"/en/cve/CVE-2021-29510/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-29510","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-29510"},"untrusted":{"vendor_name":"Pydantic","product_name":"Pydantic","desc_en":"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.","affected":[{"untrusted_vendor":"samuelcolvin","untrusted_product":"pydantic","versions":[]}],"references":[{"url":"https://github.com/samuelcolvin/pydantic/commit/7e83fdd2563ffac081db7ecdf1affa65ef38c468","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/samuelcolvin/pydantic/security/advisories/GHSA-5jqp-qgf6-3pvh","tags":["Mitigation","Patch","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S2HT266L6Q7H6ICP7DFGXOGBJHNNKMKB/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UEFWM7DYKD2ZHE7R5YT5EQWJPV4ZKYRB/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UMKAJX4O6IGBBCE32CO2G7PZQCCQSBLV/","tags":[]}]},"bulletins":[{"source":"suse","id":"openSUSE-SU-2026:11424-1","url":"https://www.suse.com/support/update/","published":"2026-08-01T00:00:00+00:00","severity":"high","exploited":false,"untrusted":{"title":"python313-pydantic-2.13.4-2.1 on GA media"}}]}