CVE-2024-27933Deno arbitrary file descriptor close via `op_node_ipc_pipe()` leading to permission prompt bypass
- 8.3HighCVSS base score
- 2.3%Exploitation in 30 daysEPSS · top 17% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- YesPublic exploitsa reference or SSVC says so
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. Use 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. This 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. Version 1.39.1 fixes the bug.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. CISA's SSVC rates its exploitation: a proof of concept is public.
Timeline
ID reserved
By GitHub_M
- 7 days later
· 7 days later
Published
- 5 months later
· 5 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High8.3 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H |
| NVDNVD · Analyzed | 3.1 | High8.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 2.3% · top 17% of all CVEs (17 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.3.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- crates.iodenoGHSA-6q4w-9x56-rmwq (opens in a new tab)
References
References10
- https://github.com/denoland/deno/security/advisories/GHSA-6q4w-9x56-rmwq (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/denoland/deno/commit/55fac9f5ead6d30996400e8597c969b675c5a22b (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/denoland/deno/commit/5a91a065b882215dde209baf626247e54c21a392 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L214 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L220 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L225 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L241 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L256 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L265 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L99 (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2024-0849 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-6q4w-9x56-rmwq (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2024-27933)Record last updated .