CVE-2026-140436

my.netkarin.net
جزئیات آسیب‌پذیری
CVE-2026-140436 متوسط CVSS 6.9
yaml_elixir: توسعه نمایی alias در YamlElixir.Mapper باعث اتلاف حافظه می‌شود
yaml_elixir: exponential alias expansion in YamlElixir.Mapper allows memory exhaustion
فروشنده: Kamillelonek
تاریخ انتشار: 2026-12-04 06:31:06
Yaml Elixir

توضیح (فارسی)

حله امنیتی عدم محدودسازی مناسب ارجاع‌های موجودیت بازگشتی در YamlElixir.Mapper در yaml_elixir از KamilLelonek به مهاجم امکان می‌دهد تا از طریق یک سند YAML با anchor و aliasهای تو در تو، حافظه نود BEAM را اتلاف کند. yamerl هر alias را به ترم anchor مربوطه حل می‌کند، بنابراین سند پارس شده به اندازه ورودی کوچک باقی می‌ماند. YamlElixir.Mapper.process/2 در lib/yaml_elixir/mapper.ex آن سند را به عنوان یک درخت پیمایش می‌کند و برای هر alias یک کپی جدید از نود anchor می‌سازد. با anchorهای تو در تو، اندازه نتیجه به صورت نمایی با عمق تو در تو بودن رشد می‌کند. همه توابع YamlElixir.read_* با گزینه‌های پیش‌فرض خود تحت تأثیر قرار می‌گیرند. این مشکل بر yaml_elixir از نسخه 0.0.1 تا قبل از 2.13.0 تأثیر می‌گذارد.

Original description (English)

Improper Restriction of Recursive Entity References vulnerability in YamlElixir.Mapper in KamilLelonek yaml_elixir allows an attacker to exhaust the memory of the BEAM node via a YAML document with nested anchors and aliases.

yamerl resolves each alias to the term of its anchor, so the parsed document stays as small as the input. YamlElixir.Mapper.process/2 in lib/yaml_elixir/mapper.ex walks that document as a tree and builds a new copy of the anchored node for every alias. With nested anchors, the size of the result grows exponentially with the nesting depth. All YamlElixir.read_* functions are affected with their default options.

This issue affects yaml_elixir: from 0.0.1 before 2.13.0.

6.9 امتیاز CVSS
1.0٪ احتمال بهره‌برداری (EPSS)
— تاریخ گزارش بهره‌برداری
— تاریخ ثبت در CISA