CVE-2024-27931
Insufficient permission checking in `Deno.makeTemp*` APIs
Description
Deno is a JavaScript, TypeScript, and WebAssembly runtime with secure defaults. Insufficient validation of parameters in `Deno.makeTemp*` APIs would allow for creation of files outside of the allowed directories. This may allow the user to overwrite important files on the system that may affect other systems. A user may provide a prefix or suffix to a `Deno.makeTemp*` API containing path traversal characters. This is fixed in Deno 1.41.1.
INFO
Published Date :
March 5, 2024, 5:15 p.m.
Last Modified :
Jan. 3, 2025, 7:29 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source | 
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | [email protected] | ||||
| CVSS 3.1 | MEDIUM | [email protected] | 
Public PoC/Exploit Available at Github
                                            CVE-2024-27931 has a 1 public
                                            PoC/Exploit available at Github.
                                            Go to the Public Exploits tab to see the list.
                                        
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-27931.
                                        
| URL | Resource | 
|---|---|
| https://github.com/denoland/deno/security/advisories/GHSA-hrqr-jv8w-v9jh | Exploit Third Party Advisory | 
| https://github.com/denoland/deno/security/advisories/GHSA-hrqr-jv8w-v9jh | Exploit Third Party Advisory | 
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-27931 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-27931
            weaknesses.
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).
A collection of Server-Side Prototype Pollution gadgets and exploits
exploits gadgets javascript prototype-pollution security typescript vulnerabilities
JavaScript TypeScript HTML EJS Haml Pug Blade
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-27931 vulnerability anywhere in the article.
		
                The following table lists the changes that have been made to the
                CVE-2024-27931 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:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N Added CWE NIST NVD-CWE-noinfo Added CPE Configuration OR *cpe:2.3:a:deno:deno:*:*:*:*:*:*:*:* versions up to (excluding) 1.41.1 Changed Reference Type https://github.com/denoland/deno/security/advisories/GHSA-hrqr-jv8w-v9jh No Types Assigned https://github.com/denoland/deno/security/advisories/GHSA-hrqr-jv8w-v9jh Exploit, Third Party Advisory Changed Reference Type https://github.com/denoland/deno/security/advisories/GHSA-hrqr-jv8w-v9jh No Types Assigned https://github.com/denoland/deno/security/advisories/GHSA-hrqr-jv8w-v9jh Exploit, Third Party 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/security/advisories/GHSA-hrqr-jv8w-v9jh  - 
                            
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value  - 
                            
CVE Received by [email protected]
Mar. 05, 2024
Action Type Old Value New Value Added Description Deno is a JavaScript, TypeScript, and WebAssembly runtime with secure defaults. Insufficient validation of parameters in `Deno.makeTemp*` APIs would allow for creation of files outside of the allowed directories. This may allow the user to overwrite important files on the system that may affect other systems. A user may provide a prefix or suffix to a `Deno.makeTemp*` API containing path traversal characters. This is fixed in Deno 1.41.1. Added Reference GitHub, Inc. https://github.com/denoland/deno/security/advisories/GHSA-hrqr-jv8w-v9jh [No types assigned] Added CWE GitHub, Inc. CWE-20 Added CVSS V3.1 GitHub, Inc. AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N