CVE-2022-24783
JSON

10.0critical

Sandbox bypass leading to arbitrary code execution in Deno

Severity
10.0critical CVSS:3.1 by GitHub_M
Exploit likelihood
1.15% (higher than 67% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-838h-jqp6-cf2f

Description

Deno is a runtime for JavaScript and TypeScript. The versions of Deno between release 1.18.0 and 1.20.2 (inclusive) are vulnerable to an attack where a malicious actor controlling the code executed in a Deno runtime could bypass all permission checks and execute arbitrary shell code. This vulnerability does not affect users of Deno Deploy. The vulnerability has been patched in Deno 1.20.3. There is no workaround. All users are recommended to upgrade to 1.20.3 immediately.

Affected

Product or packageVersionsReported by
denoland deno>= 1.18.0, < 1.20.3CVE List
deno (crates.io)from 1.18.0 before 1.20.3GitHub Advisory Database
deno denofrom 1.18.0 before 1.20.3NVD

All scores

GitHub_M10.0critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
GitHub10.0critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
NVD10.0critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

CWE-269CWE-863

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

Deno is a runtime for JavaScript and TypeScript. The versions of Deno between release 1.18.0 and 1.20.2 (inclusive) are vulnerable to an attack where a malicious actor controlling the code executed in a Deno runtime could bypass all permission checks and execute arbitrary shell code. This vulnerability does not affect users of Deno Deploy. The vulnerability has been patched in Deno 1.20.3. There is no workaround. All users are recommended to upgrade to 1.20.3 immediately.

GitHub Advisory Database
Impact

The versions of Deno between release 1.18.0 and 1.20.2 (inclusive) are vulnerable to an attack where a malicious actor controlling the code executed in a Deno runtime could bypass permission checks and execute arbitrary shell code.

There is no evidence that this vulnerability has been exploited in the wild.

This vulnerability does not affect users of Deno Deploy.

Patches

The vulnerability has been patched in Deno 1.20.3.

Workarounds

There is no workaround. All users are recommended to upgrade to 1.20.3 immediately


The cause of this error was that certain FFI operations did not correctly check for permissions. The issue was fixed in this pull request.

NVD (es)

Deno es un tiempo de ejecución para JavaScript y TypeScript. Las versiones de Deno comprendidas entre la versión 1.18.0 y la 1.20.2 (inclusive) son vulnerables a un ataque en el que un actor malicioso que controle el código ejecutado en un tiempo de ejecución de Deno podría omitir todas las comprobaciones de permisos y ejecutar código shell arbitrario. Esta vulnerabilidad no afecta a usuarios de Deno Deploy. La vulnerabilidad ha sido parcheada en Deno versión 1.20.3. No se presenta ninguna medida de mitigación. Es recomendado a todos los usuarios actualizar a versión 1.20.3 inmediatamente

References

Sources

SourceRecordLicence
CVE ListCVE-2022-24783 changed 2025-04-23CVE Terms of Use
GitHub Advisory DatabaseGHSA-838h-jqp6-cf2f changed 2023-11-08CC-BY-4.0
NVDCVE-2022-24783 changed 2026-06-17Public domain