Description
Qualys discovered that needrestart, before version 3.8, passes unsanitized data to a library (Modules::ScanDeps) which expects safe input. This could allow a local attacker to execute arbitrary shell commands. Please see the related CVE-2024-10224 in Modules::ScanDeps.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| needrestart | needrestart | < 3.8 | 3.8 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | needrestart | 3.7-3.1 | — |
| Debian 13 | needrestart | 3.7-3.1 | — |
| Debian 12 | needrestart | 3.6-4+deb12u2 | DSA-5815-1 |
| Debian 11 | needrestart | 3.5-4+deb11u4 | DLA-3957-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | libmodule-scandeps-perl | 1.35-1ubuntu0.24.04.1 | USN-7117-1 |
| Ubuntu 24.04 LTS | needrestart | 3.6-7ubuntu4.3 | USN-7117-1 |
| Ubuntu 22.04 LTS | libmodule-scandeps-perl | 1.31-1ubuntu0.1 | USN-7117-1 |
| Ubuntu 22.04 LTS | needrestart | 3.5-5ubuntu2.2 | USN-7117-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | libmodule-scandeps-perl | 1.27-1ubuntu0.1~esm1 | USN-7117-1 |
| Ubuntu Pro 20.04 LTS | needrestart | 3.4-6ubuntu0.1+esm1 | USN-7117-1 |
| Ubuntu Pro 18.04 LTS | libmodule-scandeps-perl | 1.24-1ubuntu0.1~esm1 | USN-7117-1 |
| Ubuntu Pro 18.04 LTS | needrestart | 3.1-1ubuntu0.1+esm1 | USN-7117-1 |
| Ubuntu Pro 16.04 LTS | libmodule-scandeps-perl | 1.20-1ubuntu0.1~esm1 | USN-7117-1 |
| Ubuntu Pro 16.04 LTS | needrestart | 2.6-1ubuntu0.1~esm1 | USN-7117-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
sychikov/CVE-2024-11003-POC ★ 0 · Feb 12, 2026
Poc for easily exploit CVE-2024-11003
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 3
- USN-7117-1 Several security issues were fixed in needrestart and Module::ScanDeps Ubuntu Security Notices (USN) · Jun 25, 2026
- DSA-5815-1 needrestart - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-3957-1 needrestart - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- https://www.cve.org/CVERecord?id=CVE-2024-11003 issue-tracking
- https://github.com/liske/needrestart/commit/0f80a348883f72279a859ee655f58da34babefb0 patch
- https://www.qualys.com/2024/11/19/needrestart/needrestart.txt third-party-advisory
- https://www.cve.org/CVERecord?id=CVE-2024-10224 issue-tracking