rapidyaml through 0.16.0 Out-of-Bounds Write via ParseEngine::_add_annotation()
- State
- Published
- Severity
- 6.9 Medium
- Published
- Nov 2, 2026
- Updated
- Nov 9, 2026
- Reserved
- Nov 2, 2026
Description
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.
| Product | Versions |
|---|---|
| rapidyaml biojppm | 0.16.0 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 6.9 Medium | VulnCheck | |
| 3.1 | 6.1 Medium | VulnCheck |
Weaknesses
- CWE-787 Out-of-bounds Write
References
- https://github.com/biojppm/rapidyaml/issues/680Issue Tracker
- https://github.com/biojppm/rapidyaml/blob/v0.16.0/src/c4/yml/parse_engine.def.hpp#L4307-L4351Technical Details
- https://github.com/biojppm/rapidyaml/blob/v0.16.0/src/c4/yml/parse_engine.def.hpp#L5524-L5535Technical Details
- https://github.com/biojppm/rapidyaml/blob/v0.16.0/src/c4/yml/parse_engine.hpp#L249-L260Technical Details
- rapidyaml v0.16.0 Release NotesRelease Notes
- https://hackmd.io/@haindpwn/rapidyaml-parser-annotation-oob-writeTechnical Details
- VulnCheck Advisory: rapidyaml through 0.16.0 Out-of-Bounds Write via ParseEngine::_add_annotation()Third-Party Advisory
- https://hackmd.io/@haindpwn/cve-2026-120455-rapidyaml-parser-annotation-oob-write#Detailed-attack-stepsExploit
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.