Skip to main content

CVE-2026-92942: Uncontrolled Resource Consumption in patriksimek vm2

0
High
VulnerabilityCVE-2026-92942cvecve-2026-92942
Published: 09/17/2026 (09/17/2026, 13:46:05 UTC)
Source: CVE Database V5
Vendor/Project: patriksimek
Product: vm2

Description

CVE-2026-92942 is a high-severity vulnerability in the patriksimek vm2 library versions before 3.11.7. The issue arises because the VM timeout option does not apply to code executed outside the synchronous VM#run() call. Specifically, sandboxed code can exploit exposed FinalizationRegistry and WeakRef objects to run cleanup callbacks after the VM#run() call completes, bypassing the configured timeout. This can lead to uncontrolled resource consumption and a denial of service by blocking the host event loop indefinitely.

CVSS v4.0

Score 8.7high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Affected software

patriksimek

vm2

Affected versions
>=0 <3.11.7
vm2
pkg:npm/vm2
Affected versions
>=0 <3.11.7

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/17/2026, 22:16:33 UTC

Technical Analysis

The patriksimek vm2 library versions up to 3.11.6 do not enforce the VM({ timeout }) option on code executed outside the synchronous VM#run() call. The timeout only applies to the single _runScript() invocation within VM#run(). Sandboxed code can register a FinalizationRegistry cleanup callback on an object and then drop the strong reference to that object. When the V8 garbage collector later reclaims the object, it invokes the cleanup callback outside the timeout context. If the callback contains a busy loop, it can block the host event loop indefinitely, causing denial of service. The timing of the callback invocation depends on garbage collection triggers such as memory pressure or explicit GC calls.

Potential Impact

This vulnerability allows sandboxed code to bypass the VM timeout restriction by executing code asynchronously during garbage collection cleanup callbacks. This can result in unbounded CPU consumption and denial of service by blocking the host event loop. The impact is a high-severity denial of service condition affecting applications using vulnerable vm2 versions.

Mitigation Recommendations

A fix is available in vm2 version 3.11.7 that addresses this issue. Users should upgrade to version 3.11.7 or later to ensure the VM timeout option is properly enforced on all code execution paths, including FinalizationRegistry cleanup callbacks. Until upgraded, applications remain vulnerable to denial of service via this uncontrolled resource consumption.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulnCheck
Date Reserved
2026-09-17T12:42:34.828Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6aac65c555bf5e2cf5fdf68d

Added to database: 09/17/2026, 22:12:21 UTC

Last enriched: 09/17/2026, 22:16:33 UTC

Last updated: 09/18/2026, 01:08:36 UTC

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses