支持本站 — 捐款将帮助我们持续运营

目标:1000 元,已筹:752

75.2%
一、 漏洞 CVE-2024-48990 基础信息
漏洞信息
                                        # N/A

## 概述
needrestart 在版本 3.8 之前存在一个漏洞,允许本地攻击者通过诱导 needrestart 运行带有受攻击者控制的 PYTHONPATH 环境变量的 Python 解释器来执行任意代码。

## 影响版本
- 3.8 之前的版本

## 细节
攻击者可以通过控制 PYTHONPATH 环境变量来诱导 needrestart 运行 Python 解释器,从而执行任意代码。

## 影响
该漏洞允许本地攻击者以 root 权限执行任意代码。
                                        
神龙判断

是否为 Web 类漏洞: 未知

判断理由:

N/A
提示
尽管我们采用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。
神龙会尽力确保数据准确,但也请结合实际情况进行甄别与判断。
神龙祝您一切顺利!
漏洞标题
N/A
来源:美国国家漏洞数据库 NVD
漏洞描述信息
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.
来源:美国国家漏洞数据库 NVD
CVSS信息
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
来源:美国国家漏洞数据库 NVD
漏洞类别
N/A
来源:美国国家漏洞数据库 NVD
漏洞标题
needrestart 安全漏洞
来源:中国国家信息安全漏洞库 CNNVD
漏洞描述信息
needrestart是liske个人开发者的一款用于检查升级后需要重新启动哪些守护进程的工具。 needrestart 3.8之前版本存在安全漏洞,该漏洞源于允许本地攻击者通过诱骗needrestart使用攻击者控制的PYTHONPATH环境变量运行Python解释器,并以root身份执行任意代码。
来源:中国国家信息安全漏洞库 CNNVD
CVSS信息
N/A
来源:中国国家信息安全漏洞库 CNNVD
漏洞类别
其他
来源:中国国家信息安全漏洞库 CNNVD
二、漏洞 CVE-2024-48990 的公开POC
#POC 描述源链接神龙链接
1PoC for CVE-2024-48990https://github.com/makuga01/CVE-2024-48990-PoCPOC详情
2Exploit for CVE-2024-48990 (Local Privilege Escalation in needrestart < 3.8)https://github.com/ns989/CVE-2024-48990POC详情
3Qualys needsrestart vulnerability CVE-2024-48990https://github.com/felmoltor/CVE-2024-48990POC详情
4My take on the needrestart Python CVE-2024-48990https://github.com/Cyb3rFr0g/CVE-2024-48990-PoCPOC详情
5Testing POC for use caseshttps://github.com/pentestfunctions/CVE-2024-48990-PoC-TestingPOC详情
6Qualys 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-exploitPOC详情
7A Local Privilege Escalation poc scipts for CVE-2024-48990, CVE-2024-48991, CVE-2024-48992, CVE-2024-10224, and CVE-2024-11003https://github.com/njeru-codes/needrestart-vulnerability-pocPOC详情
8My exploit for CVE-2024-48990. Full details of how I made this are on my blog.https://github.com/ally-petitt/CVE-2024-48990-ExploitPOC详情
9Needrestart, 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-48990POC详情
10Nonehttps://github.com/CyberCrowCC/CVE-2024-48990POC详情
11Nonehttps://github.com/NullByte-7w7/CVE-2024-48990POC详情
12Exploit for CVE-2024-48990 - Privilege Escalation in Needrestart 3.7-3. For eductional purposes onlyhttps://github.com/ten-ops/CVE-2024-48990_needrestartPOC详情
13Needrestart, 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-48990POC详情
14Needrestart, 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-48990POC详情
15Automated 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-ExploitPOC详情
16Full exploit for needsrestart setuid root shellhttps://github.com/mladicstefan/CVE-2024-48990POC详情
17PoC for CVE-2024-48990https://github.com/Mr-DJ/CVE-2024-48990POC详情
18Nonehttps://github.com/Loaxert/CVE-2024-48990-PoCPOC详情
19i tried this in Conversor HTB machinehttps://github.com/0x3bs/CVE-2024-48990POC详情
20an exploit for CVE-2024-48990 ( Local Privilege Escalation ) in needrestart https://github.com/o-sec/CVE-2024-48990POC详情
21Local privilege escalation exploit for needrestart (CVE-2024-48990)https://github.com/tahsinunluturk/needrestart-privesc-cve-2024-48990POC详情
22Simple poc for CVE-2024-48990 privilege escalation vulnerability with needrestart. https://github.com/sobbing333/CVE-2024-48990-POCPOC详情
23PoC 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-48990POC详情
三、漏洞 CVE-2024-48990 的情报信息
  • https://www.qualys.com/2024/11/19/needrestart/needrestart.txtthird-party-advisory
  • 标题: 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**
                                            
    CVE Record | CVE
  • 标题: 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漏洞。
                                            
    interp: do not set PYTHONPATH environment variable to prevent a LPE · liske/needrestart@fcc9a44 · GitHub
  • https://nvd.nist.gov/vuln/detail/CVE-2024-48990
四、漏洞 CVE-2024-48990 的评论

暂无评论


发表评论