CVE-2026-142207: PyYAML through 6.0.4 CPU Denial of Service via Sexagesimal Integer Construction
PyYAML through 6.0.4 contains a denial of service vulnerability in SafeConstructor.constructyamlint() that allows remote attackers to exhaust CPU by supplying unbounded base-60 integer scalars. Attackers can submit a YAML document with a scalar containing many colon-separated groups to safeload, SafeLoader, CSafeLoader or FullLoader, causing quadratic-time construction that blocks the parsing thread.
Affected Software
Event History
Frequently Asked Questions
Which applications are exposed to this issue?
Applications using PyYAML through 6.0.4 are exposed when they parse attacker-controlled YAML with safe_load, SafeLoader, CSafeLoader, or FullLoader. The vulnerable parsing path can block the thread performing the parse.
What does an attacker need to exploit it?
An attacker needs the ability to submit a YAML document that the application parses through an affected loader. No authentication or user interaction is required according to the supplied severity vector.
What input triggers the CPU exhaustion?
The malicious YAML contains a sexagesimal integer scalar with many colon-separated groups. Constructing this value takes quadratic time, allowing the attacker to consume CPU and deny service.