# N/A
## 概述
needrestart 在版本 3.8 之前存在一个漏洞,允许本地攻击者通过诱导 needrestart 运行带有受攻击者控制的 PYTHONPATH 环境变量的 Python 解释器来执行任意代码。
## 影响版本
- 3.8 之前的版本
## 细节
攻击者可以通过控制 PYTHONPATH 环境变量来诱导 needrestart 运行 Python 解释器,从而执行任意代码。
## 影响
该漏洞允许本地攻击者以 root 权限执行任意代码。
是否为 Web 类漏洞: 未知
判断理由:
| # | POC 描述 | 源链接 | 神龙链接 |
|---|---|---|---|
| 1 | PoC for CVE-2024-48990 | https://github.com/makuga01/CVE-2024-48990-PoC | POC详情 |
| 2 | Exploit for CVE-2024-48990 (Local Privilege Escalation in needrestart < 3.8) | https://github.com/ns989/CVE-2024-48990 | POC详情 |
| 3 | Qualys needsrestart vulnerability CVE-2024-48990 | https://github.com/felmoltor/CVE-2024-48990 | POC详情 |
| 4 | My take on the needrestart Python CVE-2024-48990 | https://github.com/Cyb3rFr0g/CVE-2024-48990-PoC | POC详情 |
| 5 | Testing POC for use cases | https://github.com/pentestfunctions/CVE-2024-48990-PoC-Testing | POC详情 |
| 6 | 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. | https://github.com/r0xdeadbeef/CVE-2024-48990-exploit | POC详情 |
| 7 | A Local Privilege Escalation poc scipts for CVE-2024-48990, CVE-2024-48991, CVE-2024-48992, CVE-2024-10224, and CVE-2024-11003 | https://github.com/njeru-codes/needrestart-vulnerability-poc | POC详情 |
| 8 | My exploit for CVE-2024-48990. Full details of how I made this are on my blog. | https://github.com/ally-petitt/CVE-2024-48990-Exploit | POC详情 |
| 9 | Needrestart, prior to version 3.8, contains a vulnerability that allows local attackers to execute arbitrary code with root privileges. This is achieved by manipulating the PYTHONPATH environment variable to trick needrestart into running the Python interpreter in an unsafe context. | https://github.com/r0xdeadbeef/CVE-2024-48990 | POC详情 |
| 10 | None | https://github.com/CyberCrowCC/CVE-2024-48990 | POC详情 |
| 11 | None | https://github.com/NullByte-7w7/CVE-2024-48990 | POC详情 |
| 12 | Exploit for CVE-2024-48990 - Privilege Escalation in Needrestart 3.7-3. For eductional purposes only | https://github.com/ten-ops/CVE-2024-48990_needrestart | POC详情 |
| 13 | Needrestart, prior to version 3.8, contains a vulnerability that allows local attackers to execute arbitrary code with root privileges. This is achieved by manipulating the PYTHONPATH environment variable to trick needrestart into running the Python interpreter in an unsafe context. | https://github.com/r0xDB/CVE-2024-48990 | POC详情 |
| 14 | Needrestart, prior to version 3.8, contains a vulnerability that allows local attackers to execute arbitrary code with root privileges. This is achieved by manipulating the PYTHONPATH environment variable to trick needrestart into running the Python interpreter in an unsafe context. | https://github.com/R0XDEADBEEF/CVE-2024-48990 | POC详情 |
| 15 | Automated local privilege escalation exploit for CVE-2024-48990 (needrestart v3.7), leveraging PYTHONPATH hijacking to gain root access. | https://github.com/Serner77/CVE-2024-48990-Automatic-Exploit | POC详情 |
| 16 | Full exploit for needsrestart setuid root shell | https://github.com/mladicstefan/CVE-2024-48990 | POC详情 |
| 17 | PoC for CVE-2024-48990 | https://github.com/Mr-DJ/CVE-2024-48990 | POC详情 |
| 18 | None | https://github.com/Loaxert/CVE-2024-48990-PoC | POC详情 |
| 19 | i tried this in Conversor HTB machine | https://github.com/0x3bs/CVE-2024-48990 | POC详情 |
| 20 | an exploit for CVE-2024-48990 ( Local Privilege Escalation ) in needrestart | https://github.com/o-sec/CVE-2024-48990 | POC详情 |
| 21 | Local privilege escalation exploit for needrestart (CVE-2024-48990) | https://github.com/tahsinunluturk/needrestart-privesc-cve-2024-48990 | POC详情 |
| 22 | Simple poc for CVE-2024-48990 privilege escalation vulnerability with needrestart. | https://github.com/sobbing333/CVE-2024-48990-POC | POC详情 |
| 23 | PoC about 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. (NIST) | https://github.com/grecosamuel/CVE-2024-48990 | POC详情 |
标题: CVE Record | CVE -- 🔗来源链接
标签:issue-tracking
神龙速读:
### 关键信息
#### 漏洞编号
- **CVE-2024-48990**
#### 发布和更新日期
- **Published: 2024-11-19**
- **Updated: 2024-11-19**
#### 描述
- **Qualys 发现了 needrestart(版本 3.8 之前)允许本地攻击者通过诱骗 needrestart 运行 Python 解释器,使用攻击者控制的 PYTHONPATH 环境变量执行任意代码。**
#### CVSS 分数
- **Score: 7.8**
- **Severity: HIGH**
- **Version: 3.1**
- **Vector String: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H**
#### 产品状态
- **Vendor: needrestart**
- **Product: needrestart**
- **Platforms: Linux**
#### 影响版本
- **Default Status: unknown**
- **受影响版本: 从 0 之前到 3.8**
#### 信用
- **Qualys: finder**
- **Thomas Liske: remediation developer**
- **Mark Esler: coordinator**
#### 参考
- **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**
#### 授权数据发布者
- **CISA-ADP**
标题: interp: do not set PYTHONPATH environment variable to prevent a LPE · liske/needrestart@fcc9a44 · GitHub -- 🔗来源链接
标签:patch
神龙速读:
从这个网页截图中,我们可以获取到以下关于漏洞的关键信息:
1. **代码更改**:
- 文件:`Perl/lib/NeedRestart/Interp/Python.pm`
- 更改位置:行号190-218
- 更改内容:代码中删除了设置`PYTHONPATH`环境变量的代码,以防止LPE(本地提升权限)漏洞。
2. **更改原因**:
- 代码注释说明了更改的原因:`interp: do not set PYTHONPATH environment variable to prevent a LPE`,即“解释器:不要设置PYTHONPATH环境变量以防止LPE”。
3. **提交信息**:
- 提交者:`liske`
- 提交时间:上周
- 提交哈希:`fcc9a44`
4. **代码更改详情**:
- 删除了设置`PYTHONPATH`环境变量的代码。
- 添加了检查`PYTHONPATH`环境变量是否存在,并根据是否存在进行相应的处理。
这些信息表明,该代码更改是为了防止由于设置`PYTHONPATH`环境变量而导致的LPE漏洞。
暂无评论