CVE-2026-120455
rapidyaml through 0.16.0 contains an out-of-bounds write …
rapidyaml through 0.16.0 contains an out-of-bounds write vulnerability in ParseEngine::_add_annotation() that allows attackers to corrupt memory by supplying YAML with excess anchors or tags. Attackers can submit YAML with consecutive anchors or tags to overflow the fixed two-element annotation array in release builds, corrupting stack memory and crashing the process.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/biojppm/rapidyaml/blob/v0.16.0/src/c4/yml/parse_engine.def.hpp#L4307-L4351
- github.com/biojppm/rapidyaml/blob/v0.16.0/src/c4/yml/parse_engine.def.hpp#L5524-L5535
- github.com/biojppm/rapidyaml/blob/v0.16.0/src/c4/yml/parse_engine.hpp#L249-L260
- github.com/biojppm/rapidyaml/issues/680
- github.com/biojppm/rapidyaml/releases/tag/v0.16.0
- hackmd.io/@haindpwn/rapidyaml-parser-annotation-oob-write
- www.vulncheck.com/advisories/rapidyaml-through-0.16.0-out-of-bounds-write-via-parseengine-
- hackmd.io/@haindpwn/cve-2026-120455-rapidyaml-parser-annotation-oob-write#Detailed-attack-
- nvd.nist.gov/vuln/detail/CVE-2026-120455
- cve.org/CVERecord?id=CVE-2026-120455
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.