CVE-2024-48990
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.
What to do
Likely to be exploited: EPSS gives a 29% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | needrestart | Fixed | 3.6-7ubuntu4.3 | UBUNTU-CVE-2024-48990 |
| Ubuntu 22.04 | needrestart | Fixed | 3.5-5ubuntu2.2 | UBUNTU-CVE-2024-48990 |
| Ubuntu 20.04 | needrestart | Fix pending | 3.4-6ubuntu0.1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-48990 |
| Ubuntu 18.04 | needrestart | Fix pending | 3.1-1ubuntu0.1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-48990 |
| Ubuntu 16.04 | needrestart | Fix pending | 2.6-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-48990 |
| Debian 14 | needrestart | Fixed | 3.7-3.1 | DEBIAN-CVE-2024-48990 |
| Debian 13 | needrestart | Fixed | 3.7-3.1 | DEBIAN-CVE-2024-48990 |
| Debian 12 | needrestart | Fixed | 3.6-4+deb12u2 | DEBIAN-CVE-2024-48990 |
What the vendor says
As published in the CVE record by canonical, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- needrestart: affected: before 3.8; fixed in
3.8
Workaround: Edit /etc/needrestart/needrestart.conf so that the following line appears after "# Disable interpreter scanners." and reboot: $nrconf{interpscan} = 0;
Vendor advisories:
References
- https://www.cve.org/CVERecord?id=CVE-2024-48990
- https://github.com/liske/needrestart/commit/fcc9a4401392231bef4ef5ed026a0d7a275149ab
- https://www.qualys.com/2024/11/19/needrestart/needrestart.txt
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.