# CVE-2024-32477: Race condition when flushing input stream leads to permission prompt bypass

- Severity: High 7.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 27% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-04-18T19:58:25.993Z
- Modified: 2026-06-17T07:29:42.270Z
- Weaknesses: CWE-78, CWE-362
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- denoland deno: < 1.42.2
- deno deno: 1.42.2; before 1.42.2

## Every score

- GitHub_M: CVSS:3.1 7.7 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/denoland/deno/security/advisories/GHSA-95cj-3hr2-7j5j> (exploit, vendor-advisory)

## Sources

- CVE List: [CVE-2024-32477](https://www.cve.org/CVERecord?id=CVE-2024-32477), CVE Terms of Use, modified 2024-08-02
- NVD: [CVE-2024-32477](https://nvd.nist.gov/vuln/detail/CVE-2024-32477), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-32477 · Whole record: https://cve.day/CVE-2024-32477.json · Rebuilt by cve.day 2026-11-25T22:58:39.460Z
