OS Command Injection in needrestart - CVE-2024-11003

 

OS Command Injection in needrestart - CVE-2024-11003

Published: November 27, 2024 / Updated: November 29, 2024


Vulnerability identifier: #VU100986
CSH Severity: Low
CVSS v4: 8.5 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-11003
CWE-ID: CWE-78
Exploitation vector: Local access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to the application passes unsanitized data to a library (Modules::ScanDeps) which expects safe input. A local user can execute arbitrary OS commands as root.

Note, the vulnerability is related to #VU100773 (CVE-2024-10224).


Affected software

needrestart
Debian Linux
Gentoo Linux
Fedora
Ubuntu
libmodule-scandeps-perl (Ubuntu package)
needrestart (Ubuntu package)
needrestart
app-admin/needrestart
needrestart (Debian package)
OpenManage Network Integration (OMNI)

How to mitigate CVE-2024-11003

Install updates from vendor's website.

needrestart - update to 3.8
libmodule-scandeps-perl (Ubuntu package) - addressed in versions 1.20-1ubuntu0.1~esm1, 1.24-1ubuntu0.1~esm1, 1.27-1ubuntu0.1~esm1, 1.31-1ubuntu0.1, 1.35-1ubuntu0.24.04.1, 1.35-1ubuntu0.24.10.1
needrestart (Ubuntu package) - addressed in versions Ubuntu Pro, 2.6-1ubuntu0.1~esm1, 3.1-1ubuntu0.1+esm1, 3.4-6ubuntu0.1+esm1, 3.5-5ubuntu2.2, 3.5-5ubuntu2.3, 3.5-5ubuntu2.4, 3.6-7ubuntu4.3, 3.6-7ubuntu4.4, 3.6-7ubuntu4.5, 3.6-8ubuntu4.2, 3.6-8ubuntu4.3, 3.6-8ubuntu4.4
needrestart - addressed in versions 3.8-1.el8, 3.8-1.el9, 3.8-1.fc39, 3.8-1.fc40, 3.8-1.fc41
OpenManage Network Integration (OMNI) - update to 3.7
app-admin/needrestart - update to 3.8
needrestart (Debian package) - update to 3.6-4+deb12u2

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins