{"id":"CVE-2020-14000","aliases":["CVE-2020-14000","GHSA-vc9j-fhvv-8vrf"],"related":[],"kind":"vulnerability","state":"published","title":"Remote Code Execution in scratch-vm","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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. \n\n**NOTE**: the scratch.mit.edu hosted service is not affected because of the lack of worker scripts.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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","source":"nvd"}],"published":"2020-07-16T14:41:40.000Z","modified":"2026-06-17T02:54:04.837Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-502"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.2.0-prerelease.20200714185213"}],"ecosystem":"npm","package":"scratch-vm","purl":"pkg:npm/scratch-vm","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.2.0-prerelease.20200714185213"}],"vendor":"mit","product":"scratch-vm","cpe":"cpe:2.3:a:mit:scratch-vm:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/LLK/scratch-vm/pull/2476","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://scratch.mit.edu/discuss/topic/422904/?page=1#post-4223443","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-14000","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/LLK/scratch-vm/pull/2476/commits/90b9da45f4084958535338d1c4d71a22d6136aab","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/LLK/scratch-vm","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-14000","url":"https://www.cve.org/CVERecord?id=CVE-2020-14000","licence":"CVE Terms of Use","modified":"2024-08-04T12:32:14.707Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vc9j-fhvv-8vrf","url":"https://github.com/advisories/GHSA-vc9j-fhvv-8vrf","licence":"CC-BY-4.0","modified":"2023-11-08T04:02:24.878Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-14000","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-14000","licence":"Public domain","modified":"2026-06-17T02:54:04.837Z"}],"updatedAt":"2026-11-25T22:57:53.510Z","epss":{"score":0.0283,"percentile":0.86993,"date":"2026-12-01T12:00:22.000Z"}}