Remote Code Execution in Windows JScript9 JIT Compiler
CVE-2024-38178 is a type confusion vulnerability in the just-in-time (JIT) compiler of the legacy Windows JScript9 scripting engine used by Internet Explorer and applications embedding its WebView components. Incorrect optimization in GlobOpt::OptArraySrc allows certain operands initialized through increment, decrement, or bitwise operations to escape necessary type validation. Generated code can consequently treat an ordinary object as an Int32Array and perform unsafe memory accesses, enabling memory corruption and remote code execution. The vulnerability bypasses the fix for CVE-2022-41128. It was exploited as a zero-day in attacks attributed to APT37 against South Korean targets through malicious advertisements that legacy WebView components rendered automatically. Microsoft released a fix on August 13, 2024.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation permits arbitrary code execution within the application hosting the vulnerable scripting engine. Unsandboxed applications can expose execution at Medium Integrity Level, enabling compromise within the affected user's security context. Observed exploitation delivered ROKRAT, supporting remote command execution and sensitive-data theft. The vulnerability does not itself establish SYSTEM-level privileges or a general sandbox escape.
If you can’t patch tonight, do this now.
Disable Microsoft Edge Internet Explorer mode where unnecessary, block remote HTML content in Microsoft Office, and avoid applications that render untrusted content through legacy Internet Explorer WebViews. Where immediate Microsoft patching is unavailable, 0patch offers a JIT-disabling micropatch for specified legacy Windows desktop and server configurations through eligible PRO or Enterprise deployments. This changes NewFunctionCodeGen to return failure, retaining interpreted JavaScript execution while preventing the vulnerable JIT compilation path. These measures do not replace installing the applicable Windows security update.
Patch, then assume compromise.
Install the applicable Windows security updates released on August 13, 2024, or subsequent cumulative updates that include the fix. Apply operating-system updates even where Internet Explorer is no longer used directly, because third-party applications can still invoke the legacy scripting engine. Microsoft's fix adds operand-type comparisons and type handling to prevent incorrect JIT assumptions. Software vendors should replace Internet Explorer-based WebView components with supported Edge-based alternatives.
No public exploits tracked yet. Mallory keeps watching.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
20 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.