AploSec / Disclosures / CVE-2026-142207
PyYAML through 6.0.4 CPU Denial of Service via Sexagesimal Integer Construction
CVE-2026-142207 · published 2026-12-02
In plain words: this type of bug lets someone slow down or crash the service with crafted input (denial of service). No fixed release is listed yet.
Summary
CVE-2026-142207 affects PyYAML (PyPI) <= 6.0.4: CPU Denial of Service via Sexagesimal Integer Construction (CWE-407). No fixed release is listed. CVSS 4.0 base score 6.9 (Medium), assigned by VulnCheck. Published 2026-12-02 by VulnCheck. Credit: Zachariah Mithani (AploSec).
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.
Evidence
Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.
Remediation
No fixed release is listed in the advisory. Check the references for upstream status.
References
- VulnCheck advisoryhttps://www.vulncheck.com/advisories/pyyaml-through-6.0.4-cpu-denial-of-service-via-sexagesimal-integer-construction
- Vulnerable codehttps://github.com/yaml/pyyaml/blob/6.0.4/lib/yaml/resolver.py#L185-L192
- Vulnerable codehttps://github.com/yaml/pyyaml/blob/6.0.4/lib/yaml/constructor.py#L240-L267
- CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142207
- Severity
- Medium 6.9CVSS 4.0, scored by VulnCheck in the CVE record
- Package
- PyYAML
- Ecosystem
- PyPI
- Affected
- <= 6.0.4
- Fixed
- None
- Weakness
- CWE-407
- CNA
- VulnCheck
- Credit
- Zachariah Mithani (AploSec)finder