CVE-2026-142207

medium

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

https://www.vulncheck.com/advisories/pyyaml-through-6.0.4-cpu-denial-of-service-via-sexagesimal-integer-construction

https://github.com/yaml/pyyaml/blob/6.0.4/lib/yaml/resolver.py#L185-L192

https://github.com/yaml/pyyaml/blob/6.0.4/lib/yaml/constructor.py#L240-L267

https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-141623

Details

Source: Mitre, NVD

Published: 2026-12-02

Updated: 2026-12-04

Risk Information

CVSS v2

Base Score: 5

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P

Severity: Medium

CVSS v3

Base Score: 5.3

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Severity: Medium

CVSS v4

Base Score: 6.9

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Severity: Medium

EPSS

EPSS: 0.00881