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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi pyyaml | <= 6.0.4 | after 6.0.4 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi pyyaml | <= 6.0.4 | No fix listed |
References
- github.com technical-description
- github.com technical-description
- VulnCheck Advisory: PyYAML through 6.0.4 CPU Denial of Service via Sexagesimal Integer Construction third-party-advisory
- ENISA EUVD EUVD-2026-141623 third-party-advisory