
Catálogo de CVE
CVE-2026-133428
pydantic affected and fixed versions
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).
- Gravidade
- Medium · CVSS 4.0 · 6.3
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.86% · Dec 4, 2026
Projects and upstream resources
Reported versions and fixes
Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| Debiansid | pydantic | 2.14.0-1 | FixedDistribution-reported fixed boundary | [CVE-2026-133428] |
| Debiansid | pydantic | 2.14.1-1 | Fixed | [CVE-2026-133428] |
| Debianforky | pydantic | 2.14.0-1 | FixedDistribution-reported fixed boundary | [CVE-2026-133428] |
| Debianforky | pydantic | 2.14.1-1 | Fixed | [CVE-2026-133428] |
More observations (14)
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| Debianbookworm | pydantic | Not reported | Not affectedDistribution reports not affected | [CVE-2026-133428] |
| Debianbookworm | pydantic | 1.10.4-1+deb12u1 | Not affected | [CVE-2026-133428] |
| Debiantrixie | pydantic | Not reported | AffectedDistribution reports no fix | [CVE-2026-133428] |
| Debiantrixie | pydantic | 2.10.6-2 | Affected | [CVE-2026-133428] |
| Ubuntu24.04 | pydantic | 1.10.13-0ubuntu1 | Affected | [UBUNTU-CVE-2026-133428] |
| Ubuntu24.04 | pydantic | 1.10.14-1 | Affected | [UBUNTU-CVE-2026-133428] |
| Ubuntu24.04 | pydantic | 1.10.4-1ubuntu1 | Affected | [UBUNTU-CVE-2026-133428] |
| Ubuntu26.04 | pydantic | 2.10.6-2 | Affected | [UBUNTU-CVE-2026-133428] |
| Ubuntu26.04 | pydantic | 2.12.5-2 | Affected | [UBUNTU-CVE-2026-133428] |
| Ubuntu26.10 | pydantic | 2.12.5-2 | Affected | [UBUNTU-CVE-2026-133428] |
| Ubuntu26.10 | pydantic | 2.13.4-3 | Affected | [UBUNTU-CVE-2026-133428] |
| Ubuntupro | pydantic | 1.7.4-1 | Affected | [UBUNTU-CVE-2026-133428] |
| Ubuntupro | pydantic | 1.8.2-1 | Affected | [UBUNTU-CVE-2026-133428] |
| Ubuntupro | pydantic | 1.8.2-1ubuntu0.1~esm1 | Affected | [UBUNTU-CVE-2026-133428] |
Publisher notes
[trixie] pydantic: Minor issue
OpenFactory catalog packages
[Debian 13 (Trixie)]
- [python3-pydantic]Afetada
Pacote fonte: [pydantic]
Detalhes (2)
2.10.6-2· amd64 · trixieAfetada
pypi · pydantic · debian · 13
2.10.6-2· arm64 · trixieAfetada
pypi · pydantic · debian · 13
[Debian 12 (Bookworm)]
- [python3-pydantic]Não afetada
Pacote fonte: [pydantic]
Detalhes (2)
1.10.4-1+deb12u1· all · bookwormNão afetada
dsa · pydantic · debian · bookworm
1.10.4-1+deb12u1· all · bookwormNão afetada
dsa · pydantic · debian · bookworm
Observado:
Referências
- [https://ftp.suse.com/pub/projects/security/]
- [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://github.com/pydantic/pydantic/security/advisories/GHSA-955g-x97g-8mcp]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-133428]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-133428]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-133428]
- [https://security-tracker.debian.org/tracker/CVE-2026-133428]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-133428.json]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]