# Use of "infinity" as an input to datetime and date fields causes infinite loop in pydantic

Advisory record · `GHSA-5jqp-qgf6-3pvh`

- **Identifiers:** `GHSA-5jqp-qgf6-3pvh` · `CVE-2021-29510` · `PYSEC-2021-47`
- **State:** Confirmed
- **Severity:** CVSS 3.3 Low
- **Critical:** No
- **Weakness (CWE):** [CWE-835](https://cwe.mitre.org/data/definitions/835.html)
- **Tags:** [Denial of service](https://agentprime.io/advisories/tag/dos.md)
- **Published:** 13 May 2021
- **Updated:** 8 Jul 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 13 May 2021, 20:23 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `pydantic` (PyPI): affected `<1.6.2 || >=1.8, <1.8.2 || >=1.7, <1.7.4`; fixed in `1.6.2`, `1.8.2`, `1.7.4`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 3.3 Low, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0097, the 62nd percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 11 May 2021, 17:11 UTC: [Published by the maintainers as a GitHub repository advisory](https://github.com/pydantic/pydantic/security/advisories/GHSA-5jqp-qgf6-3pvh)

## Sources

- [GitHub Advisory Database: GHSA-5jqp-qgf6-3pvh](https://github.com/advisories/GHSA-5jqp-qgf6-3pvh)
- [OSV: GHSA-5jqp-qgf6-3pvh](https://osv.dev/vulnerability/GHSA-5jqp-qgf6-3pvh)
- <https://github.com/samuelcolvin/pydantic/security/advisories/GHSA-5jqp-qgf6-3pvh>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-29510>
- <https://github.com/pydantic/pydantic/commit/1c24f1d74ba95ea985b50bdc001ce96c813229aa>
- <https://github.com/pydantic/pydantic/commit/80e0dd3f752bef145dce12f160d262bb40ec8d47>
- <https://github.com/pydantic/pydantic/commit/bdde15b7b947c94ca00fd6eb92da8db390a13520>
- <https://github.com/samuelcolvin/pydantic/commit/7e83fdd2563ffac081db7ecdf1affa65ef38c468>
- <https://github.com/pydantic/pydantic>
- <https://github.com/pypa/advisory-database/tree/main/vulns/pydantic/PYSEC-2021-47.yaml>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S2HT266L6Q7H6ICP7DFGXOGBJHNNKMKB>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UEFWM7DYKD2ZHE7R5YT5EQWJPV4ZKYRB>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UMKAJX4O6IGBBCE32CO2G7PZQCCQSBLV>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-5jqp-qgf6-3pvh>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-5jqp-qgf6-3pvh/>. Everything for agents: <https://agentprime.io/llms.txt>.
