CVE-2025-71470: MicroQuickJS before commit 99eed3f Out-of-Bounds Read in build_backtrace
MicroQuickJS (mquickjs) before commit 99eed3f contains an out-of-bounds read vulnerability because JSCall() raises exceptions during frame setup without updating ctx->sp and ctx->fp. Attackers can supply JavaScript that calls a non-function value, causing buildbacktrace() to walk stale frame pointers and crash the engine for denial of service.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch 99eed3f
Event History
Frequently Asked Questions
What access does an attacker need to trigger the crash?
The attacker needs a way to supply JavaScript that the affected MicroQuickJS engine will execute. Exploitation requires user interaction under the provided vector, and does not require privileges.
What JavaScript behavior triggers the vulnerable path?
The issue is triggered when JavaScript calls a value that is not a function. JS_Call() raises an exception during frame setup, after which build_backtrace() can follow stale frame pointers and crash the engine.
What should be done if an update cannot be applied immediately?
Restrict or disable execution of untrusted JavaScript where possible, particularly code that can invoke arbitrary values as functions. This reduces the opportunity for an attacker to reach the crash condition.
How can I determine whether the issue is fixed?
Check whether the MicroQuickJS source includes commit 99eed3f94cb66ea7e02fd3472ca7374dee31bb89. Versions before that commit are affected according to the available information.