目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-133422— Quadratic time unique_items list validation in Pydantic V1

一分钟漏洞结论

影响对象
pydantic pydantic
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

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

CVSS 6.9 · Medium
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-133422 基础信息

漏洞信息

Shenlong is analyzing...


对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
Quadratic time unique_items list validation in Pydantic V1
来源: CVE Program / CVE List V5
Vulnerability Description
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.
来源: CVE Program / CVE List V5
CVSS Information
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
来源: CVE Program / CVE List V5
Vulnerability Type
算法复杂性
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
pydantic pydantic 1.9.0 ~ 1.10.26 -

二、漏洞 CVE-2026-133422 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-133422 的情报信息

请登录查看更多情报信息。

CVE-2026-133422 其他参考 (4)

同批安全公告 · pydantic · 2026-11-20 · 共 7 条

CVE-2026-133421 6.9 MEDIUM Quadratic time timedelta validation in Pydantic V1
CVE-2026-133428 6.3 MEDIUM Quadratic time and memory multi-host URL validation
CVE-2026-133424 6.3 MEDIUM Validation bypass of aliased fields in TypedDict and dataclasses allowing extra data
CVE-2026-133429 6.3 MEDIUM Validation bypass of extra data keys in JSON model validation
CVE-2026-133426 6.3 MEDIUM Unbounded exponent in Fraction validation
CVE-2026-133505 5.9 MEDIUM Tool result data shaped like a file is rebuilt as a file download or provider file referen

IV. Related Vulnerabilities