CVE-2018-1022: ChakraCore RCE Vulnerability
7.5
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.92292%
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.8.4 | 1.8.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper size validation when creating inline array segments. The patch adds critical size checks (AssertOrFailFast and min() operation) to prevent segments from exceeding INLINE_CHUNK_SIZE. The unpatched functions InitArrayAndHeadSegment and FillSegmentBuffer directly used alignedInlineElementSlots without validation, which could be larger than the inline buffer allocation due to alignment padding. This mismatch between allocated size and operational size would enable out-of-bounds writes (CWE-787), consistent with the described memory corruption vulnerability.