---
title: "chakra-core/ChakraCore: functions and files changed by CVE fixes"
url: https://radicalnotion.ai/fixes/chakra-core/chakracore
type: fixes-repository
description: "225 CVE fixes in chakra-core/ChakraCore changed 454 functions across 280 files."
updated: 2020-12-09
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# chakra-core/ChakraCore: patched functions

- **CVEs with a located fix:** 225
- **Functions patched:** 454
- **Files patched:** 280
- **Diff hunks:** 13,436
- **Languages:** cpp, c, assembly, javascript
- **Rank by CVE fixes:** 10 of 12,140
- **First fix:** 2016-05-11
- **Latest fix:** 2020-12-09
- **Repository:** [https://github.com/chakra-core/ChakraCore](https://github.com/chakra-core/ChakraCore)

## Typical fix size

- Median lines changed per fix: 113
- Fixes touching a single function: 18%
- Fixes under 20 changed lines: 19%

## Most-patched functions

| Function | File | CVEs | Patches | Last fixed |
| --- | --- | --- | --- | --- |
| [StartEmitFunction](https://radicalnotion.ai/fixes/chakra-core/chakracore/StartEmitFunction) | lib/Runtime/ByteCode/ByteCodeEmitter.cpp | 23 | 7 | 2020-02-11 |
| [Optimize](https://radicalnotion.ai/fixes/chakra-core/chakracore/Optimize) | lib/Backend/GlobOptArrays.cpp | 29 | 5 | 2020-03-12 |
| [InsertValueCompensation](https://radicalnotion.ai/fixes/chakra-core/chakracore/InsertValueCompensation) | lib/Backend/GlobOpt.cpp | 16 | 5 | 2019-09-11 |
| [ParseExpr](https://radicalnotion.ai/fixes/chakra-core/chakracore/ParseExpr) | lib/Parser/Parse.cpp | 14 | 4 | 2020-02-11 |
| [InlineApply](https://radicalnotion.ai/fixes/chakra-core/chakracore/InlineApply) | lib/Backend/Inline.cpp | 24 | 3 | 2019-06-12 |
| [InlineApplyWithoutArrayArgument](https://radicalnotion.ai/fixes/chakra-core/chakracore/InlineApplyWithoutArrayArgument) | lib/Backend/Inline.cpp | 24 | 3 | 2019-06-12 |
| [EmitArgList](https://radicalnotion.ai/fixes/chakra-core/chakracore/EmitArgList) | lib/Runtime/ByteCode/ByteCodeEmitter.cpp | 16 | 3 | 2017-12-12 |
| [EmitNew](https://radicalnotion.ai/fixes/chakra-core/chakracore/EmitNew) | lib/Runtime/ByteCode/ByteCodeEmitter.cpp | 16 | 3 | 2017-12-12 |
| [StartEmitCatch](https://radicalnotion.ai/fixes/chakra-core/chakracore/StartEmitCatch) | lib/Runtime/ByteCode/ByteCodeEmitter.cpp | 15 | 3 | 2019-05-16 |
| [Emit](https://radicalnotion.ai/fixes/chakra-core/chakracore/Emit) | lib/Runtime/ByteCode/ByteCodeEmitter.cpp | 10 | 3 | 2020-03-12 |
| [EmitLoad](https://radicalnotion.ai/fixes/chakra-core/chakracore/EmitLoad) | lib/Runtime/ByteCode/ByteCodeEmitter.cpp | 8 | 3 | 2020-03-12 |
| [EmitReference](https://radicalnotion.ai/fixes/chakra-core/chakracore/EmitReference) | lib/Runtime/ByteCode/ByteCodeEmitter.cpp | 6 | 3 | 2020-02-11 |
| [DeepCopyInstance](https://radicalnotion.ai/fixes/chakra-core/chakracore/DeepCopyInstance) | lib/Runtime/Library/JavascriptArray.cpp | 6 | 3 | 2018-09-13 |
| [EmitCall](https://radicalnotion.ai/fixes/chakra-core/chakracore/EmitCall) | lib/Runtime/ByteCode/ByteCodeEmitter.cpp | 5 | 3 | 2020-03-12 |
| [PostVisitFunction](https://radicalnotion.ai/fixes/chakra-core/chakracore/PostVisitFunction) | lib/Runtime/ByteCode/ByteCodeGenerator.cpp | 3 | 3 | 2019-03-06 |

## Most-patched files

| File | CVEs | Functions |
| --- | --- | --- |
| lib/Backend/GlobOpt.cpp | 111 | 3 |
| lib/Common/ChakraCoreVersion.h | 98 | 0 |
| lib/Backend/Lower.cpp | 91 | 6 |
| lib/Backend/GlobOptFields.cpp | 77 | 2 |
| lib/Backend/BackwardPass.cpp | 75 | 0 |
| lib/Runtime/Library/JavascriptArray.cpp | 71 | 16 |
| lib/Runtime/Language/JavascriptOperators.cpp | 55 | 8 |
| lib/Runtime/ByteCode/ByteCodeEmitter.cpp | 53 | 45 |
| lib/Backend/Inline.cpp | 50 | 8 |
| lib/Backend/GlobOpt.h | 50 | 5 |

## Latest CVE fixes

| CVE | Title | Severity | CVSS | CISA KEV | Functions changed | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2020-17131 | Chakra Scripting Engine Memory Corruption Vulnerability | high | 7.5 | No | - | 2020-12-09 |
| CVE-2020-17054 | Chakra Scripting Engine Memory Corruption Vulnerability | high | 7.5 | No | GlobOpt, LowerLdFrameDisplay, CheckIfInstrInTypeCheckSeqEmitsTypeCheck | 2020-11-11 |
| CVE-2020-17048 | Chakra Scripting Engine Memory Corruption Vulnerability | high | 8.1 | No | GlobOpt, LowerLdFrameDisplay, CheckIfInstrInTypeCheckSeqEmitsTypeCheck | 2020-11-11 |
| CVE-2020-1180 | Scripting Engine Memory Corruption Vulnerability | high | 7.5 | No | ForEachInlineeFrameDisplay, GetInlineeFrameDisplaysIndex, UTF8EncodingPolicyBase | 2020-09-11 |
| CVE-2020-1172 | Scripting Engine Memory Corruption Vulnerability | high | 7.5 | No | ForEachInlineeFrameDisplay, GetInlineeFrameDisplaysIndex, UTF8EncodingPolicyBase | 2020-09-11 |
| CVE-2020-1057 | Scripting Engine Memory Corruption Vulnerability | high | 8.1 | No | ForEachInlineeFrameDisplay, GetInlineeFrameDisplaysIndex, UTF8EncodingPolicyBase | 2020-09-11 |
| CVE-2020-1219 | Microsoft Browser Memory Corruption Vulnerability | high | 7.5 | No | PatchPutValueCantChangeType, CantChangeType, BackwardPass | 2020-06-09 |
| CVE-2020-1073 | Scripting Engine Memory Corruption Vulnerability | high | 8.1 | No | PatchPutValueCantChangeType, CantChangeType, BackwardPass | 2020-06-09 |
| CVE-2020-1065 | Scripting Engine Memory Corruption Vulnerability | high | 7.5 | No | - | 2020-05-21 |
| CVE-2020-1037 | Chakra Scripting Engine Memory Corruption Vulnerability | high | 7.5 | No | - | 2020-05-21 |
| CVE-2020-0970 | Scripting Engine Memory Corruption Vulnerability | high | 7.5 | No | EmitLoadInstance, GetThisAndUnwrappedInstance, GetThisAndUnwrappedInstance | 2020-04-15 |
| CVE-2020-0969 | Chakra Scripting Engine Memory Corruption Vulnerability | high | 7.5 | No | EmitLoadInstance, GetThisAndUnwrappedInstance, GetThisAndUnwrappedInstance | 2020-04-15 |

## Frequently asked questions

### How many CVEs have a located fix in chakra-core/ChakraCore?

225 published CVEs have a fix traced to functions in chakra-core/ChakraCore, touching 454 functions across 280 files.

### Which function in chakra-core/ChakraCore has been patched most often?

StartEmitFunction in lib/Runtime/ByteCode/ByteCodeEmitter.cpp has been changed by 7 distinct patches, fixing 23 CVEs, from 2017 to 2020.

### How large is a typical CVE fix in chakra-core/ChakraCore?

The median fix changes 113 lines. 19% of fixes change 20 lines or fewer, and 18% change a single function.

### How is a fix located to a function?

The upstream fix commit for each CVE is fetched and its diff is split into hunks. Each hunk is attributed to the function, method or type it changes, using the definition the diff itself names. Backports of the same fix to stable branches are counted once.

## Similar repositories

- [apache/airflow](https://radicalnotion.ai/fixes/apache/airflow) (224 CVEs)
- [vim/vim](https://radicalnotion.ai/fixes/vim/vim) (222 CVEs)
- [gpac/gpac](https://radicalnotion.ai/fixes/gpac/gpac) (229 CVEs)
- [go-gitea/gitea](https://radicalnotion.ai/fixes/go-gitea/gitea) (217 CVEs)
- [FFmpeg/FFmpeg](https://radicalnotion.ai/fixes/ffmpeg/ffmpeg) (244 CVEs)
- [zephyrproject-rtos/zephyr](https://radicalnotion.ai/fixes/zephyrproject-rtos/zephyr) (250 CVEs)
- [moodle/moodle](https://radicalnotion.ai/fixes/moodle/moodle) (259 CVEs)
- [android.googlesource.com/platform-frameworks-av](https://radicalnotion.ai/fixes/android.googlesource.com/platform-frameworks-av) (176 CVEs)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/fixes/chakra-core/chakracore). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
