UBUNTU-CVE-2022-1537

Source
https://ubuntu.com/security/CVE-2022-1537
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-1537.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2022-1537
Related
Published
2022-05-10T14:15:00Z
Modified
2024-10-15T14:09:37Z
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

Ubuntu:Pro:18.04:LTS / grunt

Package

Name
grunt
Purl
pkg:deb/ubuntu/grunt?arch=src?distro=esm-apps/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.0.1-8ubuntu0.1+esm1

Affected versions

1.*

1.0.1-5
1.0.1-6
1.0.1-7
1.0.1-8
1.0.1-8ubuntu0.1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.0.1-8ubuntu0.1+esm1",
            "binary_name": "grunt"
        }
    ]
}

Ubuntu:20.04:LTS / grunt

Package

Name
grunt
Purl
pkg:deb/ubuntu/grunt?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.0.1-9
1.0.4-2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:20.04:LTS / grunt

Package

Name
grunt
Purl
pkg:deb/ubuntu/grunt?arch=src?distro=esm-apps/focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.0.4-2ubuntu0.1~esm1

Affected versions

1.*

1.0.1-9
1.0.4-2

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.0.4-2ubuntu0.1~esm1",
            "binary_name": "grunt"
        }
    ]
}

Ubuntu:22.04:LTS / grunt

Package

Name
grunt
Purl
pkg:deb/ubuntu/grunt?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.3.0-1
1.3.0-2
1.4.1-1
1.4.1-2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:22.04:LTS / grunt

Package

Name
grunt
Purl
pkg:deb/ubuntu/grunt?arch=src?distro=esm-apps/jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.4.1-2ubuntu0.1~esm1

Affected versions

1.*

1.3.0-1
1.3.0-2
1.4.1-1
1.4.1-2

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.4.1-2ubuntu0.1~esm1",
            "binary_name": "grunt"
        }
    ]
}