
Catálogo de CVE
CVE-2026-133422
pydantic affected and fixed versions
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.
- Gravedad
- Medium · CVSS 4.0 · 6.9
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 - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.82% · 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 |
|---|---|---|---|---|
| Debiantrixie | pydantic | 2.10.6-2 | Fixed | [CVE-2026-133422] |
| Debiantrixie | pydantic | 2.4.2-1 | FixedDistribution-reported fixed boundary | [CVE-2026-133422] |
| Debiansid | pydantic | 2.14.1-1 | Fixed | [CVE-2026-133422] |
| Debiansid | pydantic | 2.4.2-1 | FixedDistribution-reported fixed boundary | [CVE-2026-133422] |
| Debianforky | pydantic | 2.14.1-1 | Fixed | [CVE-2026-133422] |
| Debianforky | pydantic | 2.4.2-1 | FixedDistribution-reported fixed boundary | [CVE-2026-133422] |
More observations (8)
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| Debianbookworm | pydantic | Not reported | AffectedDistribution reports no fix | [CVE-2026-133422] |
| Debianbookworm | pydantic | 1.10.4-1+deb12u1 | Affected | [CVE-2026-133422] |
| Ubuntu24.04 | pydantic | 1.10.13-0ubuntu1 | Affected | [UBUNTU-CVE-2026-133422] |
| Ubuntu24.04 | pydantic | 1.10.14-1 | Affected | [UBUNTU-CVE-2026-133422] |
| Ubuntu24.04 | pydantic | 1.10.4-1ubuntu1 | Affected | [UBUNTU-CVE-2026-133422] |
| Ubuntupro | pydantic | 1.7.4-1 | Affected | [UBUNTU-CVE-2026-133422] |
| Ubuntupro | pydantic | 1.8.2-1 | Affected | [UBUNTU-CVE-2026-133422] |
| Ubuntupro | pydantic | 1.8.2-1ubuntu0.1~esm1 | Affected | [UBUNTU-CVE-2026-133422] |
Publisher notes
[bookworm] pydantic: Minor issue, DoS
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-pydantic]Afectada
Paquete fuente: [pydantic]
Detalles (2)
1.10.4-1+deb12u1· all · bookwormAfectada
dsa · pydantic · debian · bookworm; pypi · pydantic · debian · 12
1.10.4-1+deb12u1· all · bookwormAfectada
dsa · pydantic · debian · bookworm; pypi · pydantic · debian · 12
[Debian 13 (Trixie)]
- [python3-pydantic]Corregida
Paquete fuente: [pydantic]
Detalles (2)
2.10.6-2· amd64 · trixieCorregida · Corregida:
2.4.2-1pypi · pydantic · debian · 13
2.10.6-2· arm64 · trixieCorregida · Corregida:
2.4.2-1pypi · pydantic · debian · 13
Observado:
Referencias
- [https://ftp.suse.com/pub/projects/security/]
- [https://github.com/pydantic/pydantic/blob/v1.10.26/pydantic/types.py#L612-L620]
- [https://github.com/pydantic/pydantic/commit/6ec75e57f277a820ec583e601167f25fe8dc7c87]
- [https://github.com/pydantic/pydantic/releases/tag/v2.14.2]
- [https://github.com/pydantic/pydantic/security/advisories/GHSA-49g6-96jj-f7r9]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-133422]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-133422]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-133422]
- [https://security-tracker.debian.org/tracker/CVE-2026-133422]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-133422.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]