BreachSpiderVerified, not vibes

CVE-2024-32477 in Deno

High 7.4 Fix available

Deno is a JavaScript, TypeScript, and WebAssembly runtime with secure defaults. By using ANSI escape sequences and a race between `libc::tcflush(0, libc::TCIFLUSH)` and reading standard input, it's possible to manipulate the permission prompt and force it to allow an unsafe action regardless of the user input. Some ...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.17.4
EPSS0.4%
EPSS percentile27th
FixAvailable

Remotely exploitable over the network, high complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Deno Deno < 1.42.2

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

Deno is a JavaScript, TypeScript, and WebAssembly runtime with secure defaults. By using ANSI escape sequences and a race between `libc::tcflush(0, libc::TCIFLUSH)` and reading standard input, it's possible to manipulate the permission prompt and force it to allow an unsafe action regardless of the user input. Some ANSI escape sequences act as a info request to the master terminal emulator and the terminal emulator sends back the reply in the PTY channel. standard streams also use this channel to send and get data. For example the `\033[6n` sequence requests the current cursor position. These sequences allow us to append data to the standard input of Deno. This vulnerability allows an attacker to bypass Deno permission policy. This vulnerability is fixed in 1.42.2.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2024-32477
BreachSpider IDBS-2024-GLOBAL-191984-H
CVSS vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Published2024-04-18
Last modified2025-09-04
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-78: OS Command Injection

Attacker injects OS commands through application inputs passed to system() or equivalent calls, leading to arbitrary command execution.

CWE-362: Race Condition

Software behavior depends on event timing that is not enforced, allowing attackers to exploit the timing window.

Related attack patterns (CAPEC)

CAPEC-43 Exploiting Multiple Input Interpretation Layers via CWE-78

CAPEC-108 Command Line Execution through SQL Injection via CWE-78

CAPEC-6 Argument Injection via CWE-78

CAPEC-15 Command Delimiters via CWE-78

CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions via CWE-362

Show all 7

CAPEC-88 OS Command Injection via CWE-78

CAPEC-26 Leveraging Race Conditions via CWE-362

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A vulnerability in Deno allows attackers to manipulate permission prompts by using ANSI escape sequences and a race condition, potentially leading to unauthorized actions.

The attack involves sending ANSI escape sequences to the terminal emulator while a race condition exists between `libc::tcflush(0, libc::TCIFLUSH)` and reading standard input. This can trick the user into approving an unsafe action without their knowledge.

Questions

What is CVE-2024-32477?

A vulnerability in Deno allows attackers to manipulate permission prompts by using ANSI escape sequences and a race condition, potentially leading to unauthorized actions.

What is the CVSS score for CVE-2024-32477?

CVE-2024-32477 has CVSS 7.4 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N. EPSS: 0.4%.

Is CVE-2024-32477 actively exploited?

No confirmed active exploitation of CVE-2024-32477 as of 2026-05-30.

How do I remediate CVE-2024-32477?

Priority: HIGH. PSIRT: [email protected]

What systems are affected by CVE-2024-32477?

CVE-2024-32477 affects Deno Deno.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Deno","product":"Deno","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2025-09-04.