CVE-2018-8294:
ChakraCore RCE Vulnerability
7.5
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.9373%
CWE
Published
5/13/2022
Updated
10/6/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.10.1 | 1.10.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper handling of 'new.target' and frame display parameters during cross-context marshalling. The commit fixes two key issues: 1) In CrossSite.cpp
, the original code checked for 'HasExtraArg()' before 'HasNewTarget()', leading to incorrect marshalling of the last parameter as a frame display instead of 'new.target'. This could result in an out-of-bounds write. 2) In Arguments.h
, the assertion in GetFrameDisplay()
did not validate the absence of 'new.target', allowing invalid memory access. Both functions directly contributed to the memory corruption vulnerability by enabling improper parameter handling.