7.0
HIGH
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.

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.

Affected Products

The following products are affected by CVE-2022-1537 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Gruntjs grunt
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

Updated: 8 months, 2 weeks ago
34 stars 0 fork 0 watcher
Born at : Feb. 1, 2024, 11:43 a.m. This repo has been linked 71 different CVEs too.

WP REST API enhancement to return JSON arrays containing localized strings registered with WordPress' wp_localize_script() function

JavaScript PHP

Updated: 2 years, 5 months ago
3 stars 1 fork 1 watcher
Born at : Feb. 15, 2016, 8:13 p.m. This repo has been linked 3 different CVEs too.

Adds links to posts in other languages into the results of a WP REST API query for sites running the WPML plugin.

JavaScript PHP

Updated: 2 months, 3 weeks ago
43 stars 29 fork 29 watcher
Born at : Feb. 15, 2016, 3:29 p.m. This repo has been linked 3 different CVEs too.

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
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
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

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability