CVE-2024-27936
Description
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.
Weakness
- CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2024-07-09 |
Timeline
- 2024-03-05GitHub advisory published (GHSA-m4pq-fv2w-6hrw)1 day before publication
- 2024-03-06Published by the CNA21:05 UTC
- 2024-07-09CISA SSVC decision recorded125 days after publication
Exploit and advisory records
GitHub advisory GHSA-m4pq-fv2w-6hrw, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| crates.io deno | from 1.32.1 before 1.41.0 | 1.41.0 |
| crates.io deno_runtime | from 0.103.0 before 0.147.0 | 0.147.0 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| deno deno | from 1.32.1 before 1.41.0fixed in 1.41.0 | 1.41.0 |
| deno deno_runtime | from 0.103.0 before 0.147.0fixed in 0.147.0 | 0.147.0 |
References
- https://github.com/denoland/deno/commit/78d430103a8f6931154ddbbe19d36f3b8630286d
- https://github.com/denoland/deno/commit/7e6b94231290020b55f1d08fb03ea8132781abc5
- https://github.com/denoland/deno/security/advisories/GHSA-m4pq-fv2w-6hrw
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2024-27936'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2024-27936'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2024-27936'curl 'https://api.contrastcyber.com/cve_products/CVE-2024-27936'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).