CVE-2024-38178: Remote Code Execution in Windows JScript9 JIT Compiler
- Vendor
- Microsoft Corporation
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.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
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.
Mitigation
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.
Remediation
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.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2024-38178 exploited in the wild?
- Yes. As of Oct 25, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Aug 13, 2024.
- Is there a public exploit for CVE-2024-38178?
- As of Oct 25, 2026, Mallory has found no public exploit for CVE-2024-38178.
- Is there a patch for CVE-2024-38178?
- 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.
- What products are affected by CVE-2024-38178?
- Microsoft Corporation Windows 10 1507, Microsoft Corporation Windows 10 1607, Microsoft Corporation Windows 10 1809, Microsoft Corporation Windows 10 21h2, Microsoft Corporation Windows 10 22h2, and 11 more.
- How severe is CVE-2024-38178?
- CVE-2024-38178 has a CVSS v3.1 score of 7.5 (High) and an EPSS score of 41.4% (99th percentile) as of Oct 25, 2026.
Recent activity
20 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.