CVE-2026-133428
CVE-2026-133428 · Quadratic time and memory multi-host URL validation
CVSS 6.3 · Media · EPSS 0,9% · Corrección disponible
Compara con tu versión instalada
Los productos afectados y las versiones corregidas conocidas son datos públicos. Compáralos con tu versión instalada.
- pydanticActualiza a 2.14.0
- pydantic Debian 13Sin corrección publicada
- pydantic Debian 14Actualiza a 2.14.0-1
- pydantic Ubuntu Pro 20.04 LTSSin corrección publicada
- y 4 más
Comprueba la versión instalada:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="pydantic"'Evalúa los riesgos de tu servidor
La comprobación gratuita te da una puntuación y un resumen de riesgos por pila tecnológica, sin registro. No indica si esta vulnerabilidad concreta te afecta.
La monitorización compara los datos públicos con el software de tus servidores. Ofrece hallazgos detallados y el orden de las actualizaciones.
curl -fsSL https://patchfirst.dev/check.sh | shLos canales publican noticias generales sobre tecnologías; la monitorización te avisa de nuevos hallazgos en tus servidores en el panel, mediante notificaciones del navegador, en Telegram o por webhook.
Esta página presenta datos de fuentes públicas de vulnerabilidades. Consulta el aviso original antes de actualizar.
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).
- Publicación
- Actualización
Pila tecnológica: system
Productos y versiones afectados
pydantic
- Versiones
- ≥ 2.0.0, < 2.14.0: Afectada (python)
Actualiza a 2.14.0
pydantic Debian 13
- Versiones
- 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
Todas las versiones (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
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
pydantic Debian 14
- Versiones
- 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
Todas las versiones (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
- Intervalos de versiones afectados
- ECOSYSTEM: < 2.14.0-1
Actualiza a 2.14.0-1
pydantic Ubuntu Pro 20.04 LTS
- Versiones
- 0.30.1-1
- 1.2-1
- 1.2-1ubuntu0.1~esm1
- 1.2-1ubuntu0.1~esm3
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
pydantic Ubuntu Pro 22.04 LTS
- Versiones
- 1.7.4-1
- 1.8.2-1
- 1.8.2-1ubuntu0.1~esm1
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
pydantic Ubuntu 24.04 LTS
- Versiones
- 1.10.4-1ubuntu1
- 1.10.13-0ubuntu1
- 1.10.14-1
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
pydantic Ubuntu 26.10
- Versiones
- 2.12.5-2
- 2.13.4-3
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
pydantic Ubuntu 26.04 LTS
- Versiones
- 2.10.6-2
- 2.12.5-2
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
Fuentes originales
- 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