CVE-2017-11911: ChakraCore RCE Vulnerability
7.5
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.98752%
CWE
Published
5/14/2022
Updated
7/26/2023
KEV Status
No
Technology
C#
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
Microsoft.ChakraCore | nuget | < 1.7.5 | 1.7.5 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The analysis focuses on commit a5d6be6 which patched CVE-2017-11911. The code changes in AsmJsModule.cpp
introduced a bitvector (initializerBV) to track variable usage in initializers and added validation to prevent using variables before declaration. The vulnerability occurred because the original implementation didn't ensure variables were declared before being referenced in initializers, allowing attackers to reference undefined constants and trigger OOB reads from the constant table via GetConstRegister()
. The explicit error message 'Cannot declare a var after using it in an initializer' in the patch confirms this was the vulnerable path.