USN-5426-1

Source
https://ubuntu.com/security/notices/USN-5426-1
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-5426-1.json
JSON Data
https://api.test.osv.dev/v1/vulns/USN-5426-1
Upstream
Related
Published
2022-05-17T16:24:55Z
Modified
2026-04-27T16:05:37Z
Summary
needrestart vulnerability
Details

Jakub Wilk discovered that needrestart incorrectly used some regular expressions. A local attacker could possibly use this issue to execute arbitrary code.

References

Affected packages

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
0 Unknown 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",
    "binaries":  [
        {
            "binary_name":  "needrestart",
            "binary_version":  "3.1-1ubuntu0.1"
        }
    ]
}

Database specific

cves_map
{
    "cves":  [
        {
            "id":  "CVE-2022-30688",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "type":  "Ubuntu"
                }
            ]
        }
    ],
    "ecosystem":  "Ubuntu:18.04:LTS"
}
source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-5426-1.json"

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
0 Unknown 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",
    "binaries":  [
        {
            "binary_name":  "needrestart",
            "binary_version":  "3.4-6ubuntu0.1"
        }
    ]
}

Database specific

cves_map
{
    "cves":  [
        {
            "id":  "CVE-2022-30688",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "type":  "Ubuntu"
                }
            ]
        }
    ],
    "ecosystem":  "Ubuntu:20.04:LTS"
}
source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-5426-1.json"

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
0 Unknown 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",
    "binaries":  [
        {
            "binary_name":  "needrestart",
            "binary_version":  "3.5-5ubuntu2.1"
        }
    ]
}

Database specific

cves_map
{
    "cves":  [
        {
            "id":  "CVE-2022-30688",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "type":  "Ubuntu"
                }
            ]
        }
    ],
    "ecosystem":  "Ubuntu:22.04:LTS"
}
source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-5426-1.json"