Miggo Logo

CVE-2018-1022: ChakraCore RCE Vulnerability

7.5

CVSS Score
3.0

Basic Information

EPSS Score
0.92292%
Published
5/13/2022
Updated
10/6/2023
KEV Status
No
Technology
TechnologyC#

Technical Details

CVSS Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
Microsoft.ChakraCorenuget< 1.8.41.8.4

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot 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.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

* r*mot* *o** *x**ution vuln*r**ility *xists in t** w*y t** s*riptin* *n*in* **n*l*s o*j**ts in m*mory in Mi*roso*t *rows*rs, *k* "S*riptin* *n*in* M*mory *orruption Vuln*r**ility." T*is *****ts ***kr**or*, Int*rn*t *xplor*r **, Mi*roso*t ****. T*is

Reasoning

T** vuln*r**ility st*ms *rom improp*r siz* v*li**tion w**n *r**tin* inlin* *rr*y s**m*nts. T** p*t** ***s *riti**l siz* ****ks (*ss*rtOr**il**st *n* min() op*r*tion) to pr*v*nt s**m*nts *rom *x****in* INLIN*_**UNK_SIZ*. T** unp*t**** *un*tions Init*r