p PatchFirst

CVE-2026-92942

CVE-2026-92942 · vm2 before 3.11.7 Timeout Bypass via FinalizationRegistry

Cette page présente des faits issus de sources publiques. Consultez l’avis original avant toute mise à jour.

vm2 before 3.11.7 (affected versions <= 3.11.6) does not enforce the VM({ timeout }) option on code executed outside the synchronous VM#run() call. The timeout only wraps the single call to _runScript() via doWithTimeout() in lib/vm.js, and FinalizationRegistry and WeakRef are exposed to sandboxed code unmodified (they are not among the hardened globals in lib/setup-sandbox.js). Sandboxed code can register a FinalizationRegistry cleanup callback against an object and then drop the only strong reference to it; vm.run() returns within the configured timeout, but when the V8 garbage collector later reclaims the object it invokes the sandboxed cleanup callback outside any vm2 timeout accounting. A busy loop in that callback blocks the host event loop for an unbounded period, resulting in denial of service. The time of invocation depends on the garbage collector (e.g. under memory pressure or with --expose-gc).

CVSS 8.7 · Élevée · EPSS 0,5% · Code d’exploitation public · Correctif disponible

Publication
Mise à jour

Pile logicielle: node

Produits et versions concernés

  • vm2

    Versions du logiciel
    • ≥ 0, < 3.11.7: Concernée (semver)
    • 3.11.7: Non concernée (semver)

    Mettez à jour vers 3.11.7

  • vm2 npm

    Plages de versions concernées
    • SEMVER: < 3.11.7

    Mettez à jour vers 3.11.7

Sources originales

Vérifiez votre serveur →