{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "0.16.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "original_tag": "v0.16.0",
                "range": [
                  {
                    "fixed": "f8ac8dd50f4f7916579d55a05ebf9c6488e52670"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "f8ac8dd50f4f7916579d55a05ebf9c6488e52670"
            }
          ],
          "repo": "https://github.com/biojppm/rapidyaml",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-787"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120455.json"
  },
  "details": "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.",
  "id": "CVE-2026-120455",
  "modified": "2026-11-11T02:30:29.126142047Z",
  "published": "2026-11-02T14:29:12.335Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120455.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/biojppm/rapidyaml/releases/tag/v0.16.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-120455"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/rapidyaml-through-0.16.0-out-of-bounds-write-via-parseengine-add-annotation"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/biojppm/rapidyaml/issues/680"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/biojppm/rapidyaml"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/biojppm/rapidyaml/blob/v0.16.0/src/c4/yml/parse_engine.def.hpp#L4307-L4351"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/biojppm/rapidyaml/blob/v0.16.0/src/c4/yml/parse_engine.def.hpp#L5524-L5535"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/biojppm/rapidyaml/blob/v0.16.0/src/c4/yml/parse_engine.hpp#L249-L260"
    },
    {
      "type": "ARTICLE",
      "url": "https://hackmd.io/@haindpwn/rapidyaml-parser-annotation-oob-write"
    },
    {
      "type": "EVIDENCE",
      "url": "https://hackmd.io/@haindpwn/cve-2026-120455-rapidyaml-parser-annotation-oob-write#Detailed-attack-steps"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "rapidyaml through 0.16.0 Out-of-Bounds Write via ParseEngine::_add_annotation()"
}