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

Source: https://aplosec.si/cve/CVE-2026-142207/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-142207

Medium 6.9 · Reported · No fix listed · CWE-407 · PyPI

# 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](https://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](https://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](https://github.com/yaml/pyyaml/blob/6.0.4/lib/yaml/constructor.py#L240-L267)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142207](https://www.cve.org/CVERecord?id=CVE-2026-142207)

**Severity:** Medium 6.9 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-142207)

**Package:** PyYAML

**Ecosystem:** PyPI

**Affected:** <= 6.0.4

**Fixed:** None

**Weakness:** CWE-407

**CNA:** VulnCheck

**Credit:** Zachariah Mithani (AploSec) finder
