8.8
HIGH
CVE-2024-27933
Deno Node IPC File Descriptor Premature Close Permission Prompt Bypass
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.

INFO

Published Date :

March 21, 2024, 2:52 a.m.

Last Modified :

Jan. 3, 2025, 7:23 p.m.

Remotely Exploitable :

No

Impact Score :

6.0

Exploitability Score :

2.0
Public PoC/Exploit Available at Github

CVE-2024-27933 has a 1 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2024-27933 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Deno deno
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2024-27933.

URL Resource
https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L214 Product
https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L220 Product
https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L225 Product
https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L241 Product
https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L256 Product
https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L265 Product
https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L99 Product
https://github.com/denoland/deno/commit/55fac9f5ead6d30996400e8597c969b675c5a22b Patch
https://github.com/denoland/deno/commit/5a91a065b882215dde209baf626247e54c21a392 Product
https://github.com/denoland/deno/security/advisories/GHSA-6q4w-9x56-rmwq Exploit Vendor Advisory
https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L214 Product
https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L220 Product
https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L225 Product
https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L241 Product
https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L256 Product
https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L265 Product
https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L99 Product
https://github.com/denoland/deno/commit/55fac9f5ead6d30996400e8597c969b675c5a22b Patch
https://github.com/denoland/deno/commit/5a91a065b882215dde209baf626247e54c21a392 Product
https://github.com/denoland/deno/security/advisories/GHSA-6q4w-9x56-rmwq Exploit Vendor Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

None

Updated: 2 months, 3 weeks ago
1 stars 0 fork 0 watcher
Born at : Sept. 1, 2020, 4:44 a.m. This repo has been linked 23 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-27933 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-27933 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Jan. 03, 2025

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
    Added CWE NIST CWE-863
    Added CPE Configuration OR *cpe:2.3:a:deno:deno:1.39.0:*:*:*:*:*:*:*
    Changed Reference Type https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L214 No Types Assigned https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L214 Product
    Changed Reference Type https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L214 No Types Assigned https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L214 Product
    Changed Reference Type https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L220 No Types Assigned https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L220 Product
    Changed Reference Type https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L220 No Types Assigned https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L220 Product
    Changed Reference Type https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L225 No Types Assigned https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L225 Product
    Changed Reference Type https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L225 No Types Assigned https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L225 Product
    Changed Reference Type https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L241 No Types Assigned https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L241 Product
    Changed Reference Type https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L241 No Types Assigned https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L241 Product
    Changed Reference Type https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L256 No Types Assigned https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L256 Product
    Changed Reference Type https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L256 No Types Assigned https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L256 Product
    Changed Reference Type https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L265 No Types Assigned https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L265 Product
    Changed Reference Type https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L265 No Types Assigned https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L265 Product
    Changed Reference Type https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L99 No Types Assigned https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L99 Product
    Changed Reference Type https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L99 No Types Assigned https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L99 Product
    Changed Reference Type https://github.com/denoland/deno/commit/55fac9f5ead6d30996400e8597c969b675c5a22b No Types Assigned https://github.com/denoland/deno/commit/55fac9f5ead6d30996400e8597c969b675c5a22b Patch
    Changed Reference Type https://github.com/denoland/deno/commit/55fac9f5ead6d30996400e8597c969b675c5a22b No Types Assigned https://github.com/denoland/deno/commit/55fac9f5ead6d30996400e8597c969b675c5a22b Patch
    Changed Reference Type https://github.com/denoland/deno/commit/5a91a065b882215dde209baf626247e54c21a392 No Types Assigned https://github.com/denoland/deno/commit/5a91a065b882215dde209baf626247e54c21a392 Product
    Changed Reference Type https://github.com/denoland/deno/commit/5a91a065b882215dde209baf626247e54c21a392 No Types Assigned https://github.com/denoland/deno/commit/5a91a065b882215dde209baf626247e54c21a392 Product
    Changed Reference Type https://github.com/denoland/deno/security/advisories/GHSA-6q4w-9x56-rmwq No Types Assigned https://github.com/denoland/deno/security/advisories/GHSA-6q4w-9x56-rmwq Exploit, Vendor Advisory
    Changed Reference Type https://github.com/denoland/deno/security/advisories/GHSA-6q4w-9x56-rmwq No Types Assigned https://github.com/denoland/deno/security/advisories/GHSA-6q4w-9x56-rmwq Exploit, Vendor Advisory
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L214
    Added Reference https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L220
    Added Reference https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L225
    Added Reference https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L241
    Added Reference https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L256
    Added Reference https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L265
    Added Reference https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L99
    Added Reference https://github.com/denoland/deno/commit/55fac9f5ead6d30996400e8597c969b675c5a22b
    Added Reference https://github.com/denoland/deno/commit/5a91a065b882215dde209baf626247e54c21a392
    Added Reference https://github.com/denoland/deno/security/advisories/GHSA-6q4w-9x56-rmwq
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Received by [email protected]

    Mar. 21, 2024

    Action Type Old Value New Value
    Added 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.
    Added Reference GitHub, Inc. https://github.com/denoland/deno/security/advisories/GHSA-6q4w-9x56-rmwq [No types assigned]
    Added Reference GitHub, Inc. https://github.com/denoland/deno/commit/55fac9f5ead6d30996400e8597c969b675c5a22b [No types assigned]
    Added Reference GitHub, Inc. https://github.com/denoland/deno/commit/5a91a065b882215dde209baf626247e54c21a392 [No types assigned]
    Added Reference GitHub, Inc. https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L214 [No types assigned]
    Added Reference GitHub, Inc. https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L220 [No types assigned]
    Added Reference GitHub, Inc. https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L225 [No types assigned]
    Added Reference GitHub, Inc. https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L241 [No types assigned]
    Added Reference GitHub, Inc. https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L256 [No types assigned]
    Added Reference GitHub, Inc. https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L265 [No types assigned]
    Added Reference GitHub, Inc. https://github.com/denoland/deno/blob/v1.39.0/runtime/permissions/prompter.rs#L99 [No types assigned]
    Added CWE GitHub, Inc. CWE-863
    Added CVSS V3.1 GitHub, Inc. AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-27933 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2024-27933 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability
© cvefeed.io
Latest DB Update: Jun. 03, 2025 12:49