AploSec / Disclosures / CVE-2026-142207

Medium 6.9ReportedNo fix listedCWE-407PyPI

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

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