CVE-2024-27933 json
Deno arbitrary file descriptor close via `op_node_ipc_pipe()` leading to permission prompt bypass
published 2024-03-06 2 y ago modified 2026-09-10 1 mo ago also EUVD-2024-0849 , GHSA-6q4w-9x56-rmwq
- cvss
- 8.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.3%
- EPSS 2.3% chance of exploitation in 30 days, percentile 83%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- crates.io deno 1.39.1
- deno deno 1.39.1
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
2.28% chance of exploitation in the next 30 days, higher than 83% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/denoland/deno/security/advisories/GHSA-6q4w-9x56-rmwq referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.3 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H |
| GitHub | 3.1 | 8.2 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | deno | >=1.39.0, <1.39.1 |
1.39.1 |
Affected products
- denoland deno
Classification
- Weakness
-
- CWE-863 Incorrect Authorization
References
-
github.com
/denoland/deno/commit/55fac9f5ead6d30996400e8597c969b675c5a22b
web, patch
-
github.com
/denoland/deno/commit/5a91a065b882215dde209baf626247e54c21a392
web, product
-
github.com
/denoland/deno/security/advisories/GHSA-6q4w-9x56-rmwq
web, exploit, vendor-advisory
-
github.com
/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L214
web, product
-
github.com
/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L220
web, product
-
github.com
/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L225
web, product
-
github.com
/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L241
web, product
-
github.com
/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L256
web, product
-
github.com
/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L265
web, product
-
github.com
/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L99
web, product
-
nvd.nist.gov
/vuln/detail/CVE-2024-27933
advisory
-
github.com
/denoland/deno
package
Sources
- CVE List CVE-2024-27933
- GitHub Advisory GHSA-6q4w-9x56-rmwq
- NVD CVE-2024-27933
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.