GHSA-q489-h3j7-j39mMediumCVSS 5.3
PyYAML through 6.0.4 contains a denial of service vulnerability in SafeConstructor...
🔗 CVE IDs covered (1)
📋 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.
🔗 References (5)
- https://nvd.nist.gov/vuln/detail/CVE-2026-142207
- https://github.com/yaml/pyyaml/blob/6.0.4/lib/yaml/constructor.py#L240-L267
- https://github.com/yaml/pyyaml/blob/6.0.4/lib/yaml/resolver.py#L185-L192
- https://www.vulncheck.com/advisories/pyyaml-through-6.0.4-cpu-denial-of-service-via-sexagesimal-integer-construction
- https://github.com/advisories/GHSA-q489-h3j7-j39m