UBUNTU-CVE-2022-30688

Source
https://ubuntu.com/security/CVE-2022-30688
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-30688.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2022-30688
Related
Published
2022-05-17T15:00:00Z
Modified
2025-01-13T10:23:29Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

needrestart 0.8 through 3.5 before 3.6 is prone to local privilege escalation. Regexes to detect the Perl, Python, and Ruby interpreters are not anchored, allowing a local user to escalate privileges when needrestart tries to detect if interpreters are using old source files.

References

Affected packages

Ubuntu:Pro:16.04:LTS / needrestart

Package

Name
needrestart
Purl
pkg:deb/ubuntu/needrestart@2.6-1ubuntu0.1~esm3?arch=source&distro=esm-apps/xenial

Affected ranges

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

Affected versions

2.*

2.1-1
2.3-2
2.4-1
2.5-1
2.6-1
2.6-1ubuntu0.1~esm1
2.6-1ubuntu0.1~esm2
2.6-1ubuntu0.1~esm3

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:18.04:LTS / needrestart

Package

Name
needrestart
Purl
pkg:deb/ubuntu/needrestart@3.1-1ubuntu0.1?arch=source&distro=bionic

Affected ranges

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

Affected versions

2.*

2.11-4

3.*

3.0-1
3.1-1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "3.1-1ubuntu0.1",
            "binary_name": "needrestart"
        }
    ]
}

Ubuntu:20.04:LTS / needrestart

Package

Name
needrestart
Purl
pkg:deb/ubuntu/needrestart@3.4-6ubuntu0.1?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.4-6ubuntu0.1

Affected versions

3.*

3.4-5
3.4-6

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "3.4-6ubuntu0.1",
            "binary_name": "needrestart"
        }
    ]
}

Ubuntu:22.04:LTS / needrestart

Package

Name
needrestart
Purl
pkg:deb/ubuntu/needrestart@3.5-5ubuntu2.1?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.5-5ubuntu2.1

Affected versions

3.*

3.5-4ubuntu2
3.5-5ubuntu1
3.5-5ubuntu2

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "3.5-5ubuntu2.1",
            "binary_name": "needrestart"
        }
    ]
}