{"cve":"CVE-2024-27933","nvd":{"published":"2024-03-21T02:52:22.197","modified":"2026-06-17T07:20:37.500","status":"Analyzed","description":"Deno is a JavaScript, TypeScript, and WebAssembly runtime. In version 1.39.0, use of raw file descriptors in `op_node_ipc_pipe()` leads to premature close of arbitrary file descriptors, allowing standard input to be re-opened as a different resource resulting in permission prompt bypass. Node child_process IPC relies on the JS side to pass the raw IPC file descriptor to `op_node_ipc_pipe()`, which returns a `IpcJsonStreamResource` ID associated with the file descriptor. On closing the resource, the raw file descriptor is closed together.\n\nUse of raw file descriptors in `op_node_ipc_pipe()` leads to premature close of arbitrary file descriptors. This allow standard input (fd 0) to be closed and re-opened for a different resource, which allows a silent permission prompt bypass. This is exploitable by an attacker controlling the code executed inside a Deno runtime to obtain arbitrary code execution on the host machine regardless of permissions.\n\nThis bug is known to be exploitable. There is a working exploit that achieves arbitrary code execution by bypassing prompts from zero permissions, additionally abusing the fact that Cache API lacks filesystem permission checks. The attack can be conducted silently as stderr can also be closed, suppressing all prompt outputs.\n\nVersion 1.39.1 fixes the bug.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.8},"cwes":["CWE-863"],"references":["https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L214","https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L220","https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L225","https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L241","https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L256"],"products":["deno:deno"],"source":"nvd","synced_at":"2026-10-19T21:47:51.568503435+00:00"},"epss":{"cve":"CVE-2024-27933","score":0.02276,"percentile":0.831,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-6q4w-9x56-rmwq","url":"https://osv.dev/vulnerability/GHSA-6q4w-9x56-rmwq","summary":"Deno arbitrary file descriptor close via `op_node_ipc_pipe()` leading to permission prompt bypass","modified":"2026-09-10T03:50:10.304548338Z","packages":[{"ecosystem":"crates.io","name":"deno","purl":"pkg:cargo/deno","ranges":[">=1.39.0 <1.39.1"],"fixed":["1.39.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}