CVE-2026-133428

Source
https://cve.org/CVERecord?id=CVE-2026-133428
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-133428.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-133428
Aliases
  • GHSA-955g-x97g-8mcp
Published
2026-11-20T07:32:16Z
Modified
2026-11-20T09:00:09Z
Severity
  • 6.3 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
Quadratic time and memory multi-host URL validation
Details

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

Database specific
{
    "cna_assigner": "Pydantic",
    "cwe_ids": [
        "CWE-407"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/133xxx/CVE-2026-133428.json"
}
References

Affected packages

Git / github.com/pydantic/pydantic

Affected ranges

Type
GIT
Repo
https://github.com/pydantic/pydantic
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "extracted_events": [
        {
            "range": [
                {
                    "introduced": "2.0.0"
                },
                {
                    "fixed": "2.14.0"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandardRange"
        },
        {
            "range": [
                {
                    "fixed": "b4028f9d87e34750e53be0ba011d70f3c0fcc94e"
                }
            ],
            "source": "REFERENCES_COMMIT"
        }
    ]
}

Affected versions

V0.*
V0.17
core-v2.*
core-v2.42.0
core-v2.43.0
core-v2.44.0
core-v2.45.0
core-v2.46.0
core-v2.48.0
core-v2.49.0
v0.*
v0.0.2
v0.0.3
v0.0.4
v0.0.5
v0.0.6
v0.0.7
v0.0.8
v0.1
v0.10
v0.11
v0.11.1
v0.11.2
v0.12
v0.12.1
v0.13
v0.13.1
v0.14
v0.15
v0.16
v0.16.1
v0.18
v0.18.1
v0.18.2
v0.19
v0.2
v0.2.1
v0.20
v0.20.1
v0.20a1
v0.21
v0.22
v0.23
v0.24
v0.25
v0.26
v0.27
v0.28
v0.29
v0.3
v0.30
v0.30.1
v0.31
v0.31.1
v0.32
v0.4
v0.5
v0.6
v0.6.1
v0.6.2
v0.6.3
v0.6.4
v0.7
v0.7.1
v0.8
v0.9
v0.9.1
v1.*
v1.0
v1.0b1
v1.0b2
v1.1
v1.10.0
v1.10.0a1
v1.10.0a2
v1.10.0b1
v1.10.1
v1.10.2
v1.10a1
v1.2
v1.3
v1.4
v1.5
v1.5.1
v1.6
v1.6.1
v1.7
v1.7.1
v1.7.2
v1.8
v1.8.1
v1.9.0
v1.9.0a1
v1.9.0a2
v2.*
v2.0
v2.0.1
v2.0.2
v2.0.3
v2.0a1
v2.0a2
v2.0a3
v2.0a4
v2.0b1
v2.0b2
v2.0b3
v2.1.0
v2.1.1
v2.10.0b1
v2.10.0b2
v2.11.0
v2.11.0a1
v2.11.0a2
v2.11.0b1
v2.11.0b2
v2.11.1
v2.11.2
v2.11.3
v2.12.0
v2.12.0a1
v2.12.0b1
v2.13.0
v2.13.0b1
v2.13.0b2
v2.13.0b3
v2.14.0a1
v2.14.0b1
v2.14.0b2
v2.2.0
v2.2.1
v2.2.2
v2.3.0
v2.4.0
v2.4.1
v2.4.2
v2.5.0
v2.5.0b1
v2.6.0b1
v2.7.0
v2.7.0b1
v2.7.1
v2.8.0
v2.8.0b1
v2.9.0
v2.9.0b1
v2.9.0b2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-133428.json"