CVE-2018-20574 json
The SingleDocParser::HandleFlowMap function in yaml-cpp (aka LibYaml-C++) 0.6.2 allows remote attackers to cause a denial of service (stack…
published 7y ago modified 4mo ago also EUVD-2018-13128
- cvss
- 6.5
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.5%
- EPSS 2.5% chance of exploitation in 30 days, percentile 84%
- public exploits
- 0
- none known
Summary
The SingleDocParser::HandleFlowMap function in yaml-cpp (aka LibYaml-C++) 0.6.2 allows remote attackers to cause a denial of service (stack consumption and application crash) via a crafted YAML file.
Patch / fix
- yaml-cpp Debian 14, Debian 13, Debian 12 0.6.3-1
debian advisories DEBIAN-CVE-2018-20574
- yaml-cpp SLE Real Time 15 SP2, SLE Module for Desktop Applications 15 SP3, SLE Module for Basesystem 15 SP3 +8 more 0.6.1-4.5.1
- yaml-cpp SLE Workstation Extension 12 SP5 0.5.3-3.6.3
suse advisories SUSE-SU-2023:1740-3SUSE-SU-2022:1073-2SUSE-SU-2022:1073-1SUSE-SU-2022:1072-1
- yaml-cpp openSUSE Leap 15.3 0.6.1-4.5.1
opensuse advisories openSUSE-SU-2022:1073-1
Is CVE-2018-20574 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-20574 updated cvss 3.7
yaml-cpp: DoS in SingleDocParser::HandleFlowMap function
-
Red Hat OpenStack Platform 8 (Liberty) yaml-cpp Red Hat OpenStack Platform 9 (Mitaka) yaml-cpp Red Hat OpenStack Platform 10 (Newton) yaml-cpp Red Hat OpenStack Platform 13 (Queens) yaml-cppaffected: no fix available “Fix deferred”
-
Red Hat OpenStack Platform 14 (Rocky) yaml-cppaffected: no fix available
-
Red Hat Satellite 6 yaml-cpp Red Hat Software Collections rh-mongodb32-yaml-cpp, rh-mongodb34-yaml-cpp, rh-mongodb36-yaml-cppaffected: no fix planned “Will not fix”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.53% chance of exploitation in the next 30 days, higher than 84% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- github.com https://github.com/jbeder/yaml-cpp/issues/654 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 6.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
Classification
- Weakness
-
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
References
-
github.com
/jbeder/yaml-cpp/issues/654
exploit, third-party-advisory
- seclists.org /fulldisclosure/2024/Nov/0
Sources
- CVE List CVE-2018-20574
- NVD CVE-2018-20574
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.