# CVE-2024-27933: Deno arbitrary file descriptor close via \`op\_node\_ipc\_pipe()\` leading to permission prompt bypass

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.3
- **CVSS:** 8.3 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: High; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.37% (percentile 23, 2026-11-26)
- **CWE:** CWE-863
- **Aliases:** GHSA-6q4w-9x56-rmwq
- **Published:** 2024-03-06T17:04:08.000Z
- **Modified:** 2026-09-10T03:50:10.304Z

## Who should check

- Projects that depend on crates.io package deno (\>= 1.39.0, \< 1.39.1)
- Anyone running denoland deno = 1.39.0

## 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.

## Affected and fixed versions

- crates.io `deno`: affected \>= 1.39.0, \< 1.39.1; fixed 1.39.1 (osv)
- denoland deno: = 1.39.0 (cvelist)

## Mitigation

- Upgrade deno to 1.39.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-27933. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-27933.md
Affected: deno >= 1.39.0, < 1.39.1
Fixed in: 1.39.1

Steps:
1. Search this machine and project for deno (crates.io), denoland deno: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-27933 being exploited?

There is no confirmed exploitation: CVE-2024-27933 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.37% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-27933?

High: CVSS 8.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-27933?

deno \>= 1.39.0, \< 1.39.1.

### Is there a fix for CVE-2024-27933?

Yes. Fixed in 1.39.1. Upgrade deno to 1.39.1 or later.

### How do I check if I'm affected by CVE-2024-27933?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/denoland/deno/security/advisories/GHSA-6q4w-9x56-rmwq>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-27933>
- patch: <https://github.com/denoland/deno/commit/55fac9f5ead6d30996400e8597c969b675c5a22b>
- patch: <https://github.com/denoland/deno/commit/5a91a065b882215dde209baf626247e54c21a392>
- other: <https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L214>
- other: <https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L220>
- other: <https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L225>
- other: <https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L241>
- other: <https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L256>
- other: <https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L265>
- other: <https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L99>
- other: <https://github.com/denoland/deno>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-27933>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-6q4w-9x56-rmwq> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-27933> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-27933>
