Skip to content
OpenAdvisories
High · 7.8 Public exploit CVE-2024-11003 EUVD-2024-33730GHSA-9f4h-r2c7-m6w4

Qualys discovered that needrestart, before version 3.8, passes unsanitized data to a library (Modules::ScanDeps) which expects safe input. …

Published Nov 19, 2024 · Updated Nov 3, 2025 · Assigned by canonical

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

VendorProductAffectedFixed
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.

ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 3

References