CVE-2022-1537

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-1537
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-1537.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-1537
Aliases
Related
Published
2022-05-10T14:15:08Z
Modified
2024-10-12T08:52:14.130403Z
Severity
  • 7.0 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Debian:11 / grunt

Package

Name
grunt
Purl
pkg:deb/debian/grunt?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.3.0-1+deb11u2

Affected versions

1.*

1.3.0-1
1.3.0-1+deb11u1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / grunt

Package

Name
grunt
Purl
pkg:deb/debian/grunt?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.5.3-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / grunt

Package

Name
grunt
Purl
pkg:deb/debian/grunt?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.5.3-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Git / github.com/gruntjs/grunt

Affected ranges

Type
GIT
Repo
https://github.com/gruntjs/grunt
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v0.*

v0.4.0
v0.4.1
v0.4.2
v0.4.3
v0.4.4
v0.4.5

v1.*

v1.0.0
v1.0.0-rc1
v1.0.1
v1.0.2
v1.0.3
v1.0.4
v1.1.0
v1.2.0
v1.2.1
v1.3.0
v1.4.0
v1.4.1
v1.5.0
v1.5.1
v1.5.2