# CVE-2024-48992: Qualys discovered that needrestart, before version 3.8, allows local attackers to execute arbitrary code as root by tricking needrestart in…

- Severity: High 7.8 (CVSS:3.1, scored by canonical) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 7.95%, higher than 94% of CVEs (2026-12-02)
- Published: 2024-11-19T17:38:22.267Z
- Modified: 2026-06-17T07:59:12.013Z
- Weaknesses: CWE-427
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: canonical

## Description

Qualys discovered that needrestart, before version 3.8, allows local attackers to execute arbitrary code as root by tricking needrestart into running the Ruby interpreter with an attacker-controlled RUBYLIB environment variable.

(As written by CVE List.)

## Affected

- needrestart: before 3.8
- needrestart_project needrestart: before 3.8

## References

- <https://www.cve.org/CVERecord?id=CVE-2024-48992> (issue-tracking, vdb-entry)
- <https://github.com/liske/needrestart/commit/b5f25f6ec6e7dd0c5be249e4e45de4ee9ffe594f> (patch)
- <https://www.qualys.com/2024/11/19/needrestart/needrestart.txt> (third-party-advisory)
- <https://www.openwall.com/lists/oss-security/2024/11/19/1> (mailing-list)
- <http://seclists.org/fulldisclosure/2024/Nov/17>
- <https://lists.debian.org/debian-lts-announce/2024/11/msg00014.html>

## Sources

- CVE List: [CVE-2024-48992](https://www.cve.org/CVERecord?id=CVE-2024-48992), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2024-48992](https://nvd.nist.gov/vuln/detail/CVE-2024-48992), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-48992 · Whole record: https://cve.day/CVE-2024-48992.json · Rebuilt by cve.day 2026-11-25T22:58:48.774Z
