CVE-2022-30688 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....
HighCVSS 7.8
EPSS 0.40%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
Description
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.
Upgrade path
9 packages: 7 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/needrestart(Ubuntu Pro 16.04) | = 2.1-1; = 2.3-2; = 2.4-1; = 2.5-1 +6 more | No fix listed | No fix yet |
| debian/needrestart(Debian 12) | < 3.6-1 | 3.6-1 | Fixed |
| debian/needrestart(Debian 13) | < 3.6-1 | 3.6-1 | Fixed |
| debian/needrestart(Debian 14) | < 3.6-1 | 3.6-1 | Fixed |
| needrestart project needrestart | >= 0.8, < 3.6 | 3.6 | Fixed |
| ubuntu/needrestart(Ubuntu 18.04) | < 3.1-1ubuntu0.1; = 2.11-4; = 3.0-1; = 3.1-1 | 3.1-1ubuntu0.1 | Fixed |
| ubuntu/needrestart(Ubuntu 20.04) | < 3.4-6ubuntu0.1; = 3.4-5; = 3.4-6 | 3.4-6ubuntu0.1 | Fixed |
| ubuntu/needrestart(Ubuntu 22.04) | < 3.5-5ubuntu2.1; = 3.5-4ubuntu2; = 3.5-5ubuntu1; = 3.5-5ubuntu2 | 3.5-5ubuntu2.1 | Fixed |
| debian linux | = 9.0; = 10.0; = 11.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/needrestart(Ubuntu:22.04) | < 3.5-5ubuntu2.1 | 3.5-5ubuntu2.1 |
| needrestart project needrestart | >= 0.8, < 3.6 | 3.6 |
| debian linux | = 9.0 | No fix listed |
| debian linux | = 10.0 | No fix listed |
| debian linux | = 11.0 | No fix listed |
| debian/needrestart(Debian:12) | < 3.6-1 | 3.6-1 |
| debian/needrestart(Debian:13) | < 3.6-1 | 3.6-1 |
| debian/needrestart(Debian:14) | < 3.6-1 | 3.6-1 |
| ubuntu/needrestart(Ubuntu:Pro:16.04) | All versions | No fix listed |
| ubuntu/needrestart(Ubuntu:Pro:16.04) | = 2.1-1 | No fix listed |
| ubuntu/needrestart(Ubuntu:Pro:16.04) | = 2.3-2 | No fix listed |
| ubuntu/needrestart(Ubuntu:Pro:16.04) | = 2.4-1 | No fix listed |
| ubuntu/needrestart(Ubuntu:Pro:16.04) | = 2.5-1 | No fix listed |
| ubuntu/needrestart(Ubuntu:Pro:16.04) | = 2.6-1 | No fix listed |
| ubuntu/needrestart(Ubuntu:Pro:16.04) | = 2.6-1ubuntu0.1~esm1 | No fix listed |
| ubuntu/needrestart(Ubuntu:Pro:16.04) | = 2.6-1ubuntu0.1~esm2 | No fix listed |
| ubuntu/needrestart(Ubuntu:Pro:16.04) | = 2.6-1ubuntu0.1~esm3 | No fix listed |
| ubuntu/needrestart(Ubuntu:Pro:16.04) | = 2.6-1ubuntu0.1~esm4 | No fix listed |
| ubuntu/needrestart(Ubuntu:18.04) | < 3.1-1ubuntu0.1 | 3.1-1ubuntu0.1 |
| ubuntu/needrestart(Ubuntu:18.04) | = 2.11-4 | No fix listed |
| ubuntu/needrestart(Ubuntu:18.04) | = 3.0-1 | No fix listed |
| ubuntu/needrestart(Ubuntu:18.04) | = 3.1-1 | No fix listed |
| ubuntu/needrestart(Ubuntu:20.04) | < 3.4-6ubuntu0.1 | 3.4-6ubuntu0.1 |
| ubuntu/needrestart(Ubuntu:20.04) | = 3.4-5 | No fix listed |
| ubuntu/needrestart(Ubuntu:20.04) | = 3.4-6 | No fix listed |
Show 3 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/needrestart(Ubuntu:22.04) | = 3.5-4ubuntu2 | No fix listed |
| ubuntu/needrestart(Ubuntu:22.04) | = 3.5-5ubuntu1 | No fix listed |
| ubuntu/needrestart(Ubuntu:22.04) | = 3.5-5ubuntu2 | No fix listed |
References
- Debian Security Tracker CVE-2022-30688 vendor-advisory
- github.com release-notes third-party-advisory
- github.com patch third-party-advisory
- lists.debian.org mailing-list third-party-advisory
- www.openwall.com mailing-list third-party-advisory
- [oss-security] 20220517 CVE-2022-30688: needrestart 0.8+ local privilege escalation mailing-list third-party-advisory
- DSA-5137 third-party-advisory vendor-advisory
- [debian-lts-announce] 20220518 [SECURITY] [DLA 3013-1] needrestart security update mailing-list third-party-advisory
- seclists.org
- seclists.org
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-5426-1 vendor-advisory
- www.cve.org issue-tracking
- bugs.debian.org issue-tracking