Unrated severityNVD Advisory· Published Dec 2, 2026
PyYAML through 6.0.4 CPU Denial of Service via Sexagesimal Integer Construction
CVE-2026-142207
Description
PyYAML through 6.0.4 contains a denial of service vulnerability in SafeConstructor.construct_yaml_int() 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 safe_load, SafeLoader, CSafeLoader or FullLoader, causing quadratic-time construction that blocks the parsing thread.
Patches
Vulnerability mechanics
References
3- www.vulncheck.com/advisories/pyyaml-through-6.0.4-cpu-denial-of-service-via-sexagesimal-integer-constructionmitrethird-party-advisory
- github.com/yaml/pyyaml/blob/6.0.4/lib/yaml/constructor.pymitretechnical-description
- github.com/yaml/pyyaml/blob/6.0.4/lib/yaml/resolver.pymitretechnical-description
News mentions
0No linked articles in our index yet.