CVE-2024-27936
published 2024-03-21CVE-2024-27936: Deno is a JavaScript, TypeScript, and WebAssembly runtime with secure defaults. Starting in version 1.32.1 and prior to version 1.41.0 of the deno library…
PriorityP433medium6.5CVSS 3.1
AVNACLPRNUIRSUCNIHAN
EPSS
0.94%
59.5th percentile
Deno is a JavaScript, TypeScript, and WebAssembly runtime with secure defaults. Starting in version 1.32.1 and prior to version 1.41.0 of the deno library, maliciously crafted permission request can show the spoofed permission prompt by inserting a broken ANSI escape sequence into the request contents. Deno is stripping any ANSI escape sequences from the permission prompt, but permissions given to the program are based on the contents that contain the ANSI escape sequences. Any Deno program can spoof the content of the interactive permission prompt by inserting a broken ANSI code, which allows a malicious Deno program to display the wrong file path or program name to the user. Version 1.41.0 of the deno library contains a patch for the issue.
Affected
5 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| deno | deno | >= 1.32.1 < 1.41.0 | 1.41.0 |
| deno | deno | >= 1.32.1 < 1.41.0 | 1.41.0 |
| deno | deno_runtime | >= 0.103.0 < 0.147.0 | 0.147.0 |
| deno | deno_runtime | >= 0.103.0 < 0.147.0 | 0.147.0 |
| denoland | deno | — | — |
CVSS provenance
nvdv3.16.5MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
ghsa8.8HIGH
osv8.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
Deno's deno_runtime vulnerable to interactive permission prompt spoofing via improper ANSI stripping
ghsa·2024-03-05·CVSS 8.8
CVE-2024-27936 [HIGH] CWE-150 Deno's deno_runtime vulnerable to interactive permission prompt spoofing via improper ANSI stripping
Deno's deno_runtime vulnerable to interactive permission prompt spoofing via improper ANSI stripping
### Summary
A maliciously crafted permission request can show the spoofed permission prompt by inserting a broken ANSI escape sequence into the request contents.
### Details
In [the patch for CVE-2023-28446](https://github.com/denoland/deno/commit/78d430103a8f6931154ddbbe19d36f3b8630286d), Deno is stripping any ANSI escape sequences from the permission prompt, but permissions given to the program are based on the contents that contain the ANSI escape sequences.
For example, requesting the read permission with `/tmp/hello\u001b[/../../etc/hosts` as a path will display the `/tmp/hellotc/hosts` in the permission prompt, but the actual permission given to the program is `/tmp/hello\u001b[/..
OSV
Deno's deno_runtime vulnerable to interactive permission prompt spoofing via improper ANSI stripping
osv·2024-03-05·CVSS 8.8
CVE-2024-27936 [HIGH] Deno's deno_runtime vulnerable to interactive permission prompt spoofing via improper ANSI stripping
Deno's deno_runtime vulnerable to interactive permission prompt spoofing via improper ANSI stripping
### Summary
A maliciously crafted permission request can show the spoofed permission prompt by inserting a broken ANSI escape sequence into the request contents.
### Details
In [the patch for CVE-2023-28446](https://github.com/denoland/deno/commit/78d430103a8f6931154ddbbe19d36f3b8630286d), Deno is stripping any ANSI escape sequences from the permission prompt, but permissions given to the program are based on the contents that contain the ANSI escape sequences.
For example, requesting the read permission with `/tmp/hello\u001b[/../../etc/hosts` as a path will display the `/tmp/hellotc/hosts` in the permission prompt, but the actual permission given to the program is `/tmp/hello\u001b[/..
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/denoland/deno/commit/78d430103a8f6931154ddbbe19d36f3b8630286dhttps://github.com/denoland/deno/commit/7e6b94231290020b55f1d08fb03ea8132781abc5https://github.com/denoland/deno/security/advisories/GHSA-m4pq-fv2w-6hrwhttps://github.com/denoland/deno/commit/78d430103a8f6931154ddbbe19d36f3b8630286dhttps://github.com/denoland/deno/commit/7e6b94231290020b55f1d08fb03ea8132781abc5https://github.com/denoland/deno/security/advisories/GHSA-m4pq-fv2w-6hrw
2024-03-21
Published