9.8critical
Remote Code Execution in scratch-vm
- Severity
- 9.8critical CVSS:3.1 by NVD
- Exploit likelihood
- 2.83% (higher than 86% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-vc9j-fhvv-8vrf
Description
MIT Lifelong Kindergarten Scratch scratch-vm before 0.2.0-prerelease.20200714185213 loads extension URLs from untrusted project.json files with certain _ characters, resulting in remote code execution because the URL's content is treated as a script and is executed as a worker. The responsible code is getExtensionIdForOpcode in serialization/sb3.js. The use of _ is incompatible with a protection mechanism in older versions, in which URLs were split and consequently deserialization attacks were prevented. NOTE: the scratch.mit.edu hosted service is not affected because of the lack of worker scripts.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| scratch-vm (npm) | before 0.2.0-prerelease.20200714185213 | GitHub Advisory Database |
| mit scratch-vm | before 0.2.0-prerelease.20200714185213 | NVD |
All scores
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
MIT Lifelong Kindergarten Scratch scratch-vm before 0.2.0-prerelease.20200714185213 loads extension URLs from untrusted project.json files with certain _ characters, resulting in remote code execution because the URL's content is treated as a script and is executed as a worker. The responsible code is getExtensionIdForOpcode in serialization/sb3.js. The use of _ is incompatible with a protection mechanism in older versions, in which URLs were split and consequently deserialization attacks were prevented. NOTE: the scratch.mit.edu hosted service is not affected because of the lack of worker scripts.
GitHub Advisory Database
MIT Lifelong Kindergarten Scratch scratch-vm before 0.2.0-prerelease.20200714185213 loads extension URLs from untrusted project.json files with certain _ characters, resulting in remote code execution because the URL's content is treated as a script and is executed as a worker. The responsible code is getExtensionIdForOpcode in serialization/sb3.js. The use of _ is incompatible with a protection mechanism in older versions, in which URLs were split and consequently deserialization attacks were prevented.
NOTE: the scratch.mit.edu hosted service is not affected because of the lack of worker scripts.
NVD (es)
MIT Lifelong Kindergarten Scratch scratch-vm versiones anteriores a 0.2.0-prerelease.20200714185213, carga una URL de extensión de archivos project.json no confiables con determinados caracteres _, resultando en una ejecución de código remota porque el contenido de la URL es tratado como un script y es ejecutado como un trabajador. El código responsable es getExtensionIdForOpcode en serialization/sb3.js. El uso de _ es incompatible con un mecanismo de protección en versiones anteriores, en las que las URL fueron divididas y, en consecuencia, los ataques de deserialización fueron impedidos. NOTA: el servicio alojado scratch.mit.eduno está afectado por la falta de scripts de trabajo
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-14000 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vc9j-fhvv-8vrf changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2020-14000 changed 2026-06-17 | Public domain |