Catálogo de CVE

CVE-2026-133428

pydantic affected and fixed versions

[Catálogo de CVE]

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.3CVSS: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 / releasePackageVersionStatusSource
Debiansidpydantic2.14.0-1FixedDistribution-reported fixed boundary[CVE-2026-133428]
Debiansidpydantic2.14.1-1Fixed[CVE-2026-133428]
Debianforkypydantic2.14.0-1FixedDistribution-reported fixed boundary[CVE-2026-133428]
Debianforkypydantic2.14.1-1Fixed[CVE-2026-133428]
More observations (14)
Distribution / releasePackageVersionStatusSource
DebianbookwormpydanticNot reportedNot affectedDistribution reports not affected[CVE-2026-133428]
Debianbookwormpydantic1.10.4-1+deb12u1Not affected[CVE-2026-133428]
DebiantrixiepydanticNot reportedAffectedDistribution reports no fix[CVE-2026-133428]
Debiantrixiepydantic2.10.6-2Affected[CVE-2026-133428]
Ubuntu24.04pydantic1.10.13-0ubuntu1Affected[UBUNTU-CVE-2026-133428]
Ubuntu24.04pydantic1.10.14-1Affected[UBUNTU-CVE-2026-133428]
Ubuntu24.04pydantic1.10.4-1ubuntu1Affected[UBUNTU-CVE-2026-133428]
Ubuntu26.04pydantic2.10.6-2Affected[UBUNTU-CVE-2026-133428]
Ubuntu26.04pydantic2.12.5-2Affected[UBUNTU-CVE-2026-133428]
Ubuntu26.10pydantic2.12.5-2Affected[UBUNTU-CVE-2026-133428]
Ubuntu26.10pydantic2.13.4-3Affected[UBUNTU-CVE-2026-133428]
Ubuntupropydantic1.7.4-1Affected[UBUNTU-CVE-2026-133428]
Ubuntupropydantic1.8.2-1Affected[UBUNTU-CVE-2026-133428]
Ubuntupropydantic1.8.2-1ubuntu0.1~esm1Affected[UBUNTU-CVE-2026-133428]

Publisher notes

[trixie] pydantic: Minor issue

OpenFactory catalog packages

[Debian 13 (Trixie)]

  • Pacote fonte: [pydantic]

    Detalhes (2)
    • 2.10.6-2 · amd64 · trixie

      Afetada

      pypi · pydantic · debian · 13

    • 2.10.6-2 · arm64 · trixie

      Afetada

      pypi · pydantic · debian · 13

[Debian 12 (Bookworm)]

  • [python3-pydantic]Não afetada

    Pacote fonte: [pydantic]

    Detalhes (2)
    • 1.10.4-1+deb12u1 · all · bookworm

      Não afetada

      dsa · pydantic · debian · bookworm

    • 1.10.4-1+deb12u1 · all · bookworm

      Não afetada

      dsa · pydantic · debian · bookworm

Observado:

Referências