Skip to content

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

MediumCVSS 6.9
Published
Updated
Exploit status
No public exploit known

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
pypi pyyaml <= 6.0.4 after 6.0.4 Fixed

Affected products

ProductAffected versionsFixed in
pypi pyyaml <= 6.0.4 No fix listed

References