{"id":"CVE-2026-142207","summary":"PyYAML through 6.0.4 CPU Denial of Service via Sexagesimal Integer Construction","details":"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.","modified":"2026-12-02T23:45:30.761730528Z","published":"2026-12-02T16:50:41.223Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142207.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-407"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142207.json"},{"type":"PACKAGE","url":"https://github.com/yaml/pyyaml"},{"type":"ARTICLE","url":"https://github.com/yaml/pyyaml/blob/6.0.4/lib/yaml/constructor.py#L240-L267"},{"type":"ARTICLE","url":"https://github.com/yaml/pyyaml/blob/6.0.4/lib/yaml/resolver.py#L185-L192"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142207"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/pyyaml-through-6.0.4-cpu-denial-of-service-via-sexagesimal-integer-construction"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/yaml/pyyaml","events":[{"introduced":"0"},{"last_affected":"575f0e87bcc3b95f4df8da4aaddb0bef4e4553fc"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"0"},{"last_affected":"6.0.4"}]}]}}],"versions":["6.0.4","6.0.3","6.0.2","6.0.2rc1","6.0.1","6.0","6.0b1","5.4.1","5.4","5.1.2","5.3.1","5.3","5.3b1","5.2","5.2b1","5.1.1","5.1","3.12","4.1-retracted","4.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142207.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}