CVE-2024-48990
published high CVSS 3.1 · 7.8needrestart: arbitrary code execution via PYTHONPATH environment variable
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| needrestart | — | needrestart0 to < 3.8 · Platforms: Linux | Affected | Not stated | canonical |
| needrestart_project | — | needrestart0 to < 3.8 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| Debian | bookworm | needrestart | Advisory build | 3.6-4+deb12u2 | DSA-5815-1 |
| Ubuntu | bionic | needrestart | Advisory build | 3.1-1ubuntu0.1+esm1 | USN-7117-1 |
| Debian | bullseye | needrestart | Advisory build | 3.5-4+deb11u4 | DLA-3957-1 |
| Ubuntu | focal | needrestart | Advisory build | 3.4-6ubuntu0.1+esm1 | USN-7117-1 |
| Ubuntu | jammy | needrestart | Advisory build | 3.5-5ubuntu2.2 | USN-7117-1 |
| Ubuntu | noble | needrestart | Advisory build | 3.6-7ubuntu4.3 | USN-7117-1 |
Show 6 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | xenial | needrestart | Advisory build | 2.6-1ubuntu0.1~esm1 | USN-7117-1 |
| Ubuntu | bionic | libmodule-scandeps-perl | Advisory build | 1.24-1ubuntu0.1~esm1 | USN-7117-1 |
| Ubuntu | focal | libmodule-scandeps-perl | Advisory build | 1.27-1ubuntu0.1~esm1 | USN-7117-1 |
| Ubuntu | jammy | libmodule-scandeps-perl | Advisory build | 1.31-1ubuntu0.1 | USN-7117-1 |
| Ubuntu | noble | libmodule-scandeps-perl | Advisory build | 1.35-1ubuntu0.24.04.1 | USN-7117-1 |
| Ubuntu | xenial | libmodule-scandeps-perl | Advisory build | 1.20-1ubuntu0.1~esm1 | USN-7117-1 |
Description
Qualys discovered that needrestart, before version 3.8, allows local attackers to execute arbitrary code as root by tricking needrestart into running the Python interpreter with an attacker-controlled PYTHONPATH environment variable.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- canonical · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| needrestart | needrestart | 0 to < 3.8 (affected · semver) | canonical · cna |
| needrestart_project | needrestart | 0 to < 3.8 (affected · semver)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-427 CWE-427 Uncontrolled Search Path Element
References
6- http://seclists.org/fulldisclosure/2024/Nov/17
- https://github.com/liske/needrestart/commit/fcc9a4401392231bef4ef5ed026a0d7a275149ab
- https://lists.debian.org/debian-lts-announce/2024/11/msg00014.html
- https://www.cve.org/CVERecord?id=CVE-2024-48990
- https://www.openwall.com/lists/oss-security/2024/11/19/1
- https://www.qualys.com/2024/11/19/needrestart/needrestart.txt
Provider assertions
3canonical · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 33da37a16c1e42ea11d77e07731ab8778a1f8a64963718b07356455e3da00ae3
- Ingested
- 23 Sep 2026, 08:28:51 UTC
- Source record
- Official CVE record