CVE-2026-133428
CVE-2026-133428 · Quadratic time and memory multi-host URL validation
CVSS 6.3 · Mittel · EPSS 0,5% · Korrektur verfügbar
Vergleichen Sie mit Ihrer installierten Version
Betroffene Produkte und bekannte korrigierte Versionen sind öffentlich. Vergleichen Sie diese mit Ihrer installierten Version.
- pydanticAuf 2.14.0 aktualisieren
- pydantic Debian 13Keine Korrektur veröffentlicht
- pydantic Debian 14Auf 2.14.0-1 aktualisieren
- pydantic Ubuntu Pro 20.04 LTSKeine Korrektur veröffentlicht
- und 4 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.
Validating an untrusted URL with a long scheme and many hosts into a multi-host URL field (e.g. PostgresDsn) takes quadratic time and memory: an input of about a hundred kilobytes takes around a gigabyte of memory to validate.
The parse_multihost_url() function (in pydantic-core/src/validators/url.rs) parses each host separately, prepending the whole URL prefix (including the scheme) to every one of them. As the scheme can be arbitrarily long, and is parsed and stored once per host, both time and memory grow quadratically with the input size. Allowed schemes (e.g. postgres for PostgresDsn) are only checked after parsing, so they don't prevent the issue.
The issue was fixed in commit b4028f9d87e34750e53be0ba011d70f3c0fcc94e.
Impact: denial of service through validation of untrusted input. Affected are applications validating untrusted strings into multi-host URL fields (PostgresDsn, MongoDsn, NatsDsn, or custom types built on MultiHostUrl).
- Veröffentlicht
- Aktualisiert
Technologie-Stack: system
Betroffene Produkte und Versionen
pydantic
- Softwareversionen
- ≥ 2.0.0, < 2.14.0: Betroffen (python)
Auf 2.14.0 aktualisieren
pydantic Debian 13
- Softwareversionen
- 2.10.6-2
- 2.12.0~a1-1
- 2.12.2-1
- 2.12.3-1
- 2.12.3-2
- 2.12.4-1
Alle Versionen (16)
- 2.12.5-1
- 2.12.5-2
- 2.13.3-1
- 2.13.4-1
- 2.13.4-3
- 2.13.4-4
- 2.13.5-1
- 2.13.5-2
- 2.14.0-1
- 2.14.1-1
- Betroffene Versionsbereiche
- ECOSYSTEM: (−∞, +∞)
Keine Korrektur veröffentlicht
pydantic Debian 14
- Softwareversionen
- 2.10.6-2
- 2.12.0~a1-1
- 2.12.2-1
- 2.12.3-1
- 2.12.3-2
- 2.12.4-1
Alle Versionen (14)
- 2.12.5-1
- 2.12.5-2
- 2.13.3-1
- 2.13.4-1
- 2.13.4-3
- 2.13.4-4
- 2.13.5-1
- 2.13.5-2
- Betroffene Versionsbereiche
- ECOSYSTEM: < 2.14.0-1
Auf 2.14.0-1 aktualisieren
pydantic Ubuntu Pro 20.04 LTS
- Softwareversionen
- 0.30.1-1
- 1.2-1
- 1.2-1ubuntu0.1~esm1
- 1.2-1ubuntu0.1~esm3
- Betroffene Versionsbereiche
- ECOSYSTEM: (−∞, +∞)
Keine Korrektur veröffentlicht
pydantic Ubuntu Pro 22.04 LTS
- Softwareversionen
- 1.7.4-1
- 1.8.2-1
- 1.8.2-1ubuntu0.1~esm1
- Betroffene Versionsbereiche
- ECOSYSTEM: (−∞, +∞)
Keine Korrektur veröffentlicht
pydantic Ubuntu 24.04 LTS
- Softwareversionen
- 1.10.4-1ubuntu1
- 1.10.13-0ubuntu1
- 1.10.14-1
- Betroffene Versionsbereiche
- ECOSYSTEM: (−∞, +∞)
Keine Korrektur veröffentlicht
pydantic Ubuntu 26.10
- Softwareversionen
- 2.12.5-2
- 2.13.4-3
- Betroffene Versionsbereiche
- ECOSYSTEM: (−∞, +∞)
Keine Korrektur veröffentlicht
pydantic Ubuntu 26.04 LTS
- Softwareversionen
- 2.10.6-2
- 2.12.5-2
- Betroffene Versionsbereiche
- ECOSYSTEM: (−∞, +∞)
Keine Korrektur veröffentlicht
Originalquellen
- https://github.com/pydantic/pydantic/security/advisories/GHSA-955g-x97g-8mcp
- https://github.com/pydantic/pydantic/blob/v2.13.5/pydantic-core/src/validators/url.rs#L537
- https://github.com/pydantic/pydantic/blob/v2.13.5/pydantic-core/src/validators/url.rs#L644-L649
- https://github.com/pydantic/pydantic/commit/b4028f9d87e34750e53be0ba011d70f3c0fcc94e
- https://nvd.nist.gov/vuln/detail/CVE-2026-133428