CVE-2022-1537
GruntJS TOCTOU Arbitrary File Write Vulnerability
Description
file.copy operations in GruntJS are vulnerable to a TOCTOU race condition leading to arbitrary file write in GitHub repository gruntjs/grunt prior to 1.5.3. This vulnerability is capable of arbitrary file writes which can lead to local privilege escalation to the GruntJS user if a lower-privileged user has write access to both source and destination directories as the lower-privileged user can create a symlink to the GruntJS user's .bashrc file or replace /etc/shadow file if the GruntJS user is root.
INFO
Published Date :
May 10, 2022, 2:15 p.m.
Last Modified :
April 5, 2023, 10:15 p.m.
Source :
[email protected]
Remotely Exploitable :
No
Impact Score :
5.9
Exploitability Score :
1.0
Public PoC/Exploit Available at Github
CVE-2022-1537 has a 3 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-2022-1537
.
URL | Resource |
---|---|
https://github.com/gruntjs/grunt/commit/58016ffac5ed9338b63ecc2a63710f5027362bae | Patch Technical Description |
https://huntr.dev/bounties/0179c3e5-bc02-4fc9-8491-a1a319b51b4d | Exploit Issue Tracking Patch Technical Description |
https://lists.debian.org/debian-lts-announce/2023/04/msg00006.html |
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).
None
CMake Shell Perl C++ C Batchfile CSS Makefile M4 Python
WP REST API enhancement to return JSON arrays containing localized strings registered with WordPress' wp_localize_script() function
JavaScript PHP
Adds links to posts in other languages into the results of a WP REST API query for sites running the WPML plugin.
JavaScript PHP
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2022-1537
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2022-1537
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.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Apr. 05, 2023
Action Type Old Value New Value Added Reference https://lists.debian.org/debian-lts-announce/2023/04/msg00006.html [No Types Assigned] -
Initial Analysis by [email protected]
May. 16, 2022
Action Type Old Value New Value Added CVSS V2 NIST (AV:L/AC:M/Au:N/C:C/I:C/A:C) Added CVSS V3.1 NIST AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://github.com/gruntjs/grunt/commit/58016ffac5ed9338b63ecc2a63710f5027362bae No Types Assigned https://github.com/gruntjs/grunt/commit/58016ffac5ed9338b63ecc2a63710f5027362bae Patch, Technical Description Changed Reference Type https://huntr.dev/bounties/0179c3e5-bc02-4fc9-8491-a1a319b51b4d No Types Assigned https://huntr.dev/bounties/0179c3e5-bc02-4fc9-8491-a1a319b51b4d Exploit, Issue Tracking, Patch, Technical Description Added CWE NIST CWE-367 Added CPE Configuration OR *cpe:2.3:a:gruntjs:grunt:*:*:*:*:*:node.js:*:* versions up to (excluding) 1.5.3
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2022-1537
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-2022-1537
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.04 }} 0.00%
score
0.05635
percentile