CVE-2021-29510
CVE-2021-29510 · Use of "infinity" as an input to datetime and date fields causes infinite loop in pydantic
CVSS 3.3 · Niedrig · EPSS 1,0% · Korrektur verfügbar
Vergleichen Sie mit Ihrer installierten Version
Betroffene Produkte und bekannte korrigierte Versionen sind öffentlich. Vergleichen Sie diese mit Ihrer installierten Version.
- pydanticKeine Korrektur veröffentlicht
- pydantic Debian 12Auf 1.7.4-1 aktualisieren
- pydantic Debian 13Auf 1.7.4-1 aktualisieren
- pydantic Debian 14Auf 1.7.4-1 aktualisieren
- und 2 weitere
Installierte Version prüfen:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="pydantic"'Bewerten Sie die Risiken Ihres Servers
Die kostenlose Prüfung liefert ohne Registrierung eine Bewertung und eine Risikoübersicht nach Technologie-Stacks. Sie beantwortet nicht, ob diese einzelne Schwachstelle Sie betrifft.
Die Überwachung gleicht öffentliche Informationen mit der Software Ihrer Server ab. Sie erhalten detaillierte Funde und eine Reihenfolge für Updates.
curl -fsSL https://patchfirst.dev/check.sh | shKanäle bieten allgemeine Nachrichten zu Technologien; neue Funde auf Ihren Servern meldet die Überwachung im Dashboard, per Browser-Benachrichtigung, in Telegram oder über einen Webhook.
Diese Seite enthält Fakten aus öffentlichen Sicherheitsquellen. Lesen Sie vor dem Aktualisieren die Originalmeldung.
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.
- Veröffentlicht
- Aktualisiert
Korrekturen in Distributionen
- openSUSE-SU-2026:11424-1 · openSUSE Tumbleweed ·
- USN-6553-1 · Ubuntu Pro 20.04 LTS ·
Technologie-Stack: system · python
Betroffene Produkte und Versionen
pydantic
- Softwareversionen
- >= 1.8.0, < 1.8.2: Betroffen
- >= 1.7.0, < 1.7.4: Betroffen
- < 1.6.2: Betroffen
Keine Korrektur veröffentlicht
pydantic Debian 12
- Betroffene Versionsbereiche
- ECOSYSTEM: < 1.7.4-1
Auf 1.7.4-1 aktualisieren
pydantic Debian 13
- Betroffene Versionsbereiche
- ECOSYSTEM: < 1.7.4-1
Auf 1.7.4-1 aktualisieren
pydantic Debian 14
- Betroffene Versionsbereiche
- ECOSYSTEM: < 1.7.4-1
Auf 1.7.4-1 aktualisieren
pydantic PyPI
- Softwareversionen
- 0.0.1
- 0.0.2
- 0.0.3
- 0.0.4
- 0.0.5
- 0.0.6
Alle Versionen (73)
- 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
- Betroffene Versionsbereiche
- ECOSYSTEM: < 1.6.2
Auf 1.6.2 aktualisieren
pydantic PyPI
- Softwareversionen
- 1.8
- 1.8.1
- Betroffene Versionsbereiche
- ECOSYSTEM: ≥ 1.8, < 1.8.2
Auf 1.8.2 aktualisieren
pydantic PyPI
- Softwareversionen
- 1.7
- 1.7.1
- 1.7.2
- 1.7.3
- Betroffene Versionsbereiche
- ECOSYSTEM: ≥ 1.7, < 1.7.4
Auf 1.7.4 aktualisieren
pydantic PyPI
- Softwareversionen
- 0.0.1
- 0.0.2
- 0.0.3
- 0.0.4
- 0.0.5
- 0.0.6
Alle Versionen (152)
- 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
- Betroffene Versionsbereiche
- GIT: < 7e83fdd2563ffac081db7ecdf1affa65ef38c468
- ECOSYSTEM: < 1.6.2 ∪ ≥ 1.7, < 1.7.4 ∪ ≥ 1.8, < 1.8.2
Auf 1.6.2 aktualisieren; Auf 1.7.4 aktualisieren; Auf 1.8.2 aktualisieren
pydantic Ubuntu Pro 20.04 LTS
- Softwareversionen
- 0.30.1-1
- 1.2-1
- Betroffene Versionsbereiche
- ECOSYSTEM: < 1.2-1ubuntu0.1~esm1
Auf 1.2-1ubuntu0.1~esm1 aktualisieren
Originalquellen
- https://github.com/samuelcolvin/pydantic/security/advisories/GHSA-5jqp-qgf6-3pvh
- https://github.com/samuelcolvin/pydantic/commit/7e83fdd2563ffac081db7ecdf1affa65ef38c468
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UMKAJX4O6IGBBCE32CO2G7PZQCCQSBLV/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S2HT266L6Q7H6ICP7DFGXOGBJHNNKMKB/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UEFWM7DYKD2ZHE7R5YT5EQWJPV4ZKYRB/
- https://nvd.nist.gov/vuln/detail/CVE-2021-29510