#VU63356 Input validation error in needrestart


Published: 2022-05-18

Vulnerability identifier: #VU63356

Vulnerability risk: Low

CVSSv3.1: 6.8 [CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2022-30688

CWE-ID: CWE-20

Exploitation vector: Local

Exploit availability: No

Vulnerable software:
needrestart
Universal components / Libraries / Libraries used by multiple products

Vendor: liske (Thomas Liske)

Description

The vulnerability allows a local user to execute arbitrary code with elevated privileges.

The vulnerability exists due to application uses incorrect regexes to detect Perl, Python, and Ruby interpreters. A local user can pass specially crafted data to the application and execute arbitrary code with elevated privileges.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

needrestart: 0.8 - 3.5


External links
http://www.openwall.com/lists/oss-security/2022/05/17/9
http://github.com/liske/needrestart/releases/tag/v3.6
http://lists.debian.org/debian-security-announce/2022/msg00105.html
http://github.com/liske/needrestart/commit/e6e58136e1e3c92296e2e810cb8372a5fe0dbd30


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability