DEBIAN-CVE-2026-133422

Source
https://security-tracker.debian.org/tracker/CVE-2026-133422
Import Source
https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-133422.json
JSON Data
https://api.osv.dev/v1/vulns/DEBIAN-CVE-2026-133422
Upstream
Published
2026-11-20T08:18:32Z
Modified
2026-11-21T17:00:06Z
Severity
  • 6.9 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/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 CVSS Calculator
Summary
[none]
Details

Validating an untrusted list into a field constrained with unique_items=True with Pydantic V1 takes quadratic time: an input of a few hundred kilobytes takes seconds to validate. The ConstrainedList.unique_items_validator validator (in pydantic/types.py) checks each item against all the following ones. For a list with no duplicates (the common, valid case), this results in a quadratic number of comparisons. The issue was fixed in commit 6ec75e57f277a820ec583e601167f25fe8dc7c87. Users relying on the pydantic.v1 namespace in Pydantic V2 should upgrade to 2.14.2 or later. Impact: denial of service through validation of untrusted input. Affected are applications validating untrusted lists into fields constrained with unique_items=True (using conlist() or Field()). The fix only applies to lists of builtin scalar types (int, float, str, bytes, bool and None), for which duplicates can be detected in linear time. Lists of other types (e.g. models or dictionaries) are still checked in quadratic time, as their items aren't guaranteed to be hashable: bound their size using the max_items constraint. Pydantic V2 models are not affected.

References

Affected packages

Debian:12 / pydantic

Package

Name
pydantic
Purl
pkg:deb/debian/pydantic?arch=source&distro=bookworm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.10.4-1
1.10.4-1+deb12u1
1.10.13-0.1
1.10.14-1
1.10.17-1
2.*
2.4.2-1
2.4.2-2
2.4.2-3
2.8.2-1
2.9.1-1
2.9.1-2
2.9.2-1
2.9.2-2
2.10.1-1
2.10.2-1
2.10.3-1
2.10.4-1
2.10.4-2
2.10.5-1
2.10.6-1
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
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

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Database specific

source
"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-133422.json"

Debian:13 / pydantic

Package

Name
pydantic
Purl
pkg:deb/debian/pydantic?arch=source&distro=trixie

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
2.4.2-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Database specific

source
"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-133422.json"

Debian:14 / pydantic

Package

Name
pydantic
Purl
pkg:deb/debian/pydantic?arch=source&distro=forky

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
2.4.2-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Database specific

source
"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-133422.json"