CVEfocus › CVE database › CVE-2026-133428

CVE-2026-133428Quadratic time and memory multi-host URL validation

CVSS 6.3 MediumEPSS 0.5% (higher than 38% of CVEs)Published 2026-11-20Updated 2026-11-20Assigner: Pydantic

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).

CWE-407

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
6Fix pending
2Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10pydanticFix pendingUBUNTU-CVE-2026-133428
Ubuntu 26.04pydanticUnder investigationUBUNTU-CVE-2026-133428
Ubuntu 24.04pydanticUnder investigationUBUNTU-CVE-2026-133428
Ubuntu 22.04pydanticFix pendingUBUNTU-CVE-2026-133428
Ubuntu 20.04pydanticFix pendingUBUNTU-CVE-2026-133428
Debian 14pydanticFixed2.14.0-1DEBIAN-CVE-2026-133428
Debian 13pydanticFix pendingDEBIAN-CVE-2026-133428
Red Hat Enterprise Linux 10linux-mcp-serverFix pending
Fix deferred
Red Hat Enterprise Linux 9linux-mcp-serverFix pending
Fix deferred

What the vendor says

As published in the CVE record by Pydantic, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.