CVE-2026-142207: PyYAML through 6.0.4 CPU Denial of Service via Sexagesimal Integer Construction

Published Dec 2, 2026
·
Updated

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

1 affected component
pypi/PyYAML<=6.0.4

Event History

Dec 2, 2026
CVE Published
via MITRE·04:50 PM
Data Sourced
via MITRE·04:50 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:17 PM
DescriptionSeverityWeakness
Event
via NVD·05:17 PM

Frequently Asked Questions

1

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.

2

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203