CVE-2020-14000
CRITICAL 9.8CVSS 3.1Remote Code Execution in scratch-vm
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.
- Published
- 16 Jul 2020
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-502
- Also known as
- GHSA-vc9j-fhvv-8vrf
- Sources
- NVDJSONOSV GHSA-vc9j-fhvv-8vrfJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mit | scratch-vmcpe:2.3:a:mit:scratch-vm:*:*:*:*:*:*:*:* |
< 0.2.0-prerelease.20200714185213 | 0.2.0-prerelease.20200714185213 |
| OSV | npm | scratch-vm | < 0.2.0-prerelease.20200714185213 | 0.2.0-prerelease.20200714185213 |
References
- https://github.com/LLK/scratch-vm/pull/2476 · Third Party Advisory, WEB
- https://scratch.mit.edu/discuss/topic/422904/?page=1#post-4223443 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-14000 · ADVISORY
- https://github.com/LLK/scratch-vm/pull/2476/commits/90b9da45f4084958535338d1c4d71a22d6136aab · WEB
- https://github.com/LLK/scratch-vm · PACKAGE
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 16 Jul 2020)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 27 Jul 2020)