Skip to main content
Mallory
HighExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2021-38003: V8 JSON.stringify exception-handling flaw enabling remote code execution

Published Nov 23, 2021 · Updated 24 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
CVSS8.8High · v3.1
EPSS37.8%99th percentile
CISA KEVYesAdded Nov 3, 2021
In the wildActivePer CISA KEV
Vendors
GoogleDebian ProjectFedora Project
IdentifiersCVE-2021-38003CWE-755 · Improper Handling of Exceptional…

CVE-2021-38003 is an exception-handling vulnerability in the V8 JavaScript engine affecting Google Chrome before version 95.0.4638.69 and applications embedding vulnerable V8 builds. During JSON.stringify processing, an overflow path in JsonStringifier::SerializeArrayLikeSlow() can return EXCEPTION without setting a pending exception. Subsequent exception handling exposes V8's internal TheHole sentinel to JavaScript. Attackers can abuse this value to corrupt JavaScript Map state, obtain out-of-bounds memory access, and ultimately execute arbitrary code in the process hosting V8. The vulnerability has been exploited in Chrome, Dota 2 custom game modes, and an outdated Chromium component embedded in Sogou Input Method.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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 can compromise the confidentiality, integrity, and availability of the process hosting the vulnerable JavaScript engine through arbitrary memory access and code execution. In sandboxed Chrome configurations, execution is initially confined to the renderer; this vulnerability alone does not establish a sandbox escape or privilege escalation. In unsandboxed integrations, exploitation can execute code with the application's operating-system permissions. Observed attacks chained it with CVE-2021-1048 on Android to compromise privileged processes and used it in Sogou Input Method to deploy the GRAYRABBIT backdoor.

Mitigation

If you can’t patch tonight, do this now.

Restrict vulnerable embedded browser components to trusted destinations and prevent attacker-controlled navigation. Preserve browser sandboxing and web-security protections to limit exposure and post-exploitation impact; these controls do not fix the V8 flaw. For Sogou Input Method, install version 16.3.0.3498 or later to block the observed protocol-handler delivery chain, while treating the unchanged embedded engine as residual risk. Investigate unexpected application child processes and unusual outbound connections, and isolate systems suspected of compromise.

Remediation

Patch, then assume compromise.

Upgrade Google Chrome to version 95.0.4638.69 or later, preferably a current supported release. Applications embedding V8 or Chromium must update their bundled engine to a patched version; updating a separately installed browser does not repair an embedded engine. Google's initial fix checks that a pending exception exists before retrieving it, and subsequent hardening rejects TheHole as a Map deletion key. Valve addressed the vulnerable Dota 2 integration by upgrading V8. Sogou Input Method version 16.3.0.3498 restricts the navigation chain used to reach the exploit, but does not repair CVE-2021-38003 in its outdated embedded Chromium engine.

Public exploits

Exploits

2 exploits validated by Mallory's analysis.

View more in app →
Chrome-V8-RCE-CVE-2021-38003This repository contains a working exploit for CVE-2021-38003, a remote code execution vulnerability in the V8 JavaScript engine used by Google Chrome. The structure consists of an HTML file (exp.html) that acts as the main entry point, and two JavaScript files (wps2.js, wps3.js) that implement the exploit logic and payload. The exploit leverages a vulnerability in V8 to achieve arbitrary read/write primitives, then uses WebAssembly to allocate RWX memory and injects x86 shellcode for execution. The shellcode is embedded as a byte array in the JavaScript files. The exploit is operational and demonstrates full code execution in the browser context, requiring the user to open the HTML file in a vulnerable version of Chrome. No external network endpoints or domains are hardcoded; the exploit is self-contained and targets the local browser process.SpiralBL0CK · Disclosed Jan 7, 2023 · javascript · html · browserOperationalCVE-2021-38003The repository contains README.md (562 bytes), poc/poc.js (428 bytes), and exp/amplify_hole.js (712 bytes). It is a standalone JavaScript proof of concept for CVE-2021-38003, not a framework module. The supplied file sizes total 1,702 bytes; the repository URL, analyzed repository reference, and archive size were not supplied, so their metadata fields are empty or zero. poc/poc.js creates an 8 MiB string, places repeated references in a sparse array, and repeats that array within another array. JSON.stringify processes this oversized serialization workload inside a try/catch. According to the README, the vulnerable overflow path returns an exception sentinel without setting pending_exception_, causing exception handling to expose the internal TheHole value. The script stores the caught value in a one-element array, returns that array, and places its first element in the property the.hole. Its failure check only verifies that a caught value replaced the initial Object value; it does not independently establish that the value is TheHole. exp/amplify_hole.js attempts to use the leaked sentinel as a Map key. Repeated deletion is intended to corrupt OrderedHashMap bookkeeping, after which further Map insertions are intended to overwrite a neighboring floating-point array's length. The file includes skeletal _addrof and _fakeobj functions and diagnostic print calls, but is incomplete as supplied: trigger() is undefined in this file; the provided trigger returns an array rather than the sentinel directly; _fakeobj references orig outside its scope; and the array assignments do not establish a complete, verified aliasing primitive. The printed results therefore should not be treated as evidence of working arbitrary memory access. The code contains no network requests, hardcoded remote targets, filesystem access, registry operations, command execution, persistence, or exfiltration. The README's ./d8 and script paths are local execution references, not endpoints accessed by the JavaScript. The demonstrated scope is an attempted internal-sentinel leak with an unfinished memory-corruption amplification stage; neither successful execution nor a complete remote-code-execution chain is established by the supplied content.jamezx32 · Disclosed Oct 14, 2026 · javascript · localPoC
Exposure surface

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.

VendorProductType
Debian ProjectDebian Linuxoperating_system
Fedora ProjectFedoraoperating_system
GoogleChromeapplication
FAQ

Frequently asked questions

Is CVE-2021-38003 exploited in the wild?
Yes. As of Nov 4, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 3, 2021.
Is there a public exploit for CVE-2021-38003?
Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2021-38003, the earliest disclosed Jan 7, 2023.
Is there a patch for CVE-2021-38003?
Upgrade Google Chrome to version 95.0.4638.69 or later, preferably a current supported release. Applications embedding V8 or Chromium must update their bundled engine to a patched version; updating a separately installed browser does not repair an embedded engine.
What products are affected by CVE-2021-38003?
Google Chrome, Debian Project Debian Linux, and Fedora Project Fedora.
How severe is CVE-2021-38003?
CVE-2021-38003 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 37.8% (99th percentile) as of Nov 4, 2026.
Activity feed

Recent activity

20 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
the hacker newsNews · Nov 4, 2026China-Aligned Hackers Hijack Sogou Input Method DNS Requests to Deploy DarkVigil BackdoorA vulnerability affecting the outdated Chromium engine embedded in Sogou Input Method's CEF-based WebView. The article identifies susceptibility to this CVE when describing the earlier one-click exploit chain, but does not independently establish exploitation of this specific CVE or describe its technical details.Read more ↗cryptika blogNews · Sep 14, 2026One Click on a Malicious Link Lets Hackers Backdoor Sogou Input Method Users | Cryptika CybersecurityA known V8-engine vulnerability that UNC3569 exploited in Sogou Input Method's obsolete embedded Chromium 80 component as part of the larger one-click attack chain.Read more ↗cyber security newsNews · Sep 14, 2026One Click on a Malicious Link Lets Hackers Backdoor Sogou Input Method UsersA known V8 vulnerability exploited against Sogou Input Method's embedded Chromium 80 browser as part of the one-click attack chain. The browser's disabled sandbox and web protections enabled host-level code execution, followed by payload retrieval and DLL sideloading to deploy GRAYRABBIT. The article reports that the embedded browser remained outdated and unsandboxed after the Sogou protocol-handler fix.Read more ↗cysecurity newsNews · Sep 12, 2026China-Linked UNC3569 Exploited Sogou Input Method Flaw to Deploy GRAYRABBIT Backdoor - CySecurity News - Latest Information Security and Hacking IncidentsA JavaScript-engine vulnerability fixed in Chrome 95 in October 2021. Sogou Input Method embedded an outdated Chromium 80 build, enabling UNC3569 to exploit this older flaw as part of the attack chain.Read more ↗
+11 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence6Every report linking this CVE to a named adversary.
Associated malware12Malware families linked to this CVE, with evidence and IOCs.
Detection signatures2YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity5Community discussion across Reddit, Mastodon, and other social sources.