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.
Published: 2026-11-02
Score: 6.9 Medium
EPSS: n/a
KEV: No
Impact: Out-of-bounds write that corrupts memory and can crash the process
Action: Update Library
AI Analysis

Impact

The vulnerability is an out-of-bounds write in the ParseEngine::_add_annotation() function, which can be triggered by feeding YAML documents with an excessive number of anchors or tags. The attack allows an adversary to overwrite stack memory, leading to arbitrary corruption of the process state or a crash, and the flaw follows the characteristics of CWE‑787. The impact is limited to the instance of the library that parses the malicious input, but a corrupted process may compromise application integrity or deny service.

Affected Systems

The affected product is RapidYAML version 0.16.0, a C++ YAML parsing library. No other versions are mentioned, and the vulnerability is specific to the way annotations are stored in a fixed two-element array in release builds. Applications that embed this library or include it as a dependency are potentially affected if they provide untrusted YAML input to the parser.

Risk and Exploitability

The CVSS score of 6.9 indicates moderate severity. The event probability score (EPSS) is not available, and the vulnerability is not listed in the CISA KEV catalog, suggesting limited public exploitation evidence. Because the flaw relies on user-supplied YAML containing more anchors or tags than the library is prepared to handle, the attack vector is likely local or remote depending on how the library is used. An attacker who can supply such crafted YAML can overflow the annotation array on the stack, potentially leading to crashes or kernel exploitation if privileges are high. No exploit code is publicly referenced, but the failure mode is clear from the description.

Generated by OpenCVE AI on November 2, 2026 at 15:39 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade RapidYAML to a version newer than 0.16.0 that addresses the annotation array overflow
  • If an upgrade is not immediately possible, configure the parsing environment to disallow or strip anchors and tags before passing input to the library
  • Implement input validation or sandboxing for YAML content to ensure it does not exceed the bounds expected by the parser
  • Monitor application logs for anomalous crashes or memory corruption indicators that may suggest exploitation attempts

Generated by OpenCVE AI on November 2, 2026 at 15:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 02 Nov 2026 14:30:00 +0000

Type Values Removed Values Added
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.
Title rapidyaml through 0.16.0 Out-of-Bounds Write via ParseEngine::_add_annotation()
Weaknesses CWE-787
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-11-02T14:29:12.335Z

Reserved: 2026-11-02T12:42:21.842Z

Link: CVE-2026-120455

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-11-02T15:17:29.117

Modified: 2026-11-02T19:14:53.030

Link: CVE-2026-120455

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-02T15:45:17Z

Weaknesses