• 公告ID (KylinSec-SA-2024-4788)

摘要:

python-pyinstaller security update

安全等级: High

公告ID: KylinSec-SA-2024-4788

发布日期: 2025年2月17日

关联CVE: CVE-2023-49797  

  • 详细介绍

1. 漏洞描述

   

PyInstaller bundles a Python application and all its dependencies into a single package. The user can run the packaged app without installing a Python interpreter or any modules.

Security Fix(es):

PyInstaller bundles a Python application and all its dependencies into a single package. A PyInstaller built application, elevated as a privileged process, may be tricked by an unprivileged attacker into deleting files the unprivileged user does not otherwise have access to. A user is affected if **all** the following are satisfied: 1. The user runs an application containing either `matplotlib` or `win32com`. 2. The application is ran as administrator (or at least a user with higher privileges than the attacker). 3. The user's temporary directory is not locked to that specific user (most likely due to `TMP`/`TEMP` environment variables pointing to an unprotected, arbitrary, non default location). Either: A. The attacker is able to very carefully time the replacement of a temporary file with a symlink. This switch must occur exactly between `shutil.rmtree()`'s builtin symlink check and the deletion itself B: The application was built with Python 3.7.x or earlier which has no protection against Directory Junctions links. The vulnerability has been addressed in PR #7827 which corresponds to `pyinstaller >= 5.13.1`. Users are advised to upgrade. There are no known workarounds for this vulnerability.(CVE-2023-49797)

2. 影响范围

cve名称 产品 组件 是否受影响
CVE-2023-49797 V6 python-pyinstaller Fixed

3. 影响组件

    python-pyinstaller

4. 修复版本

   

V6

软件名称 架构 版本号
python-pyinstaller-help x86_64 5.13.0-2.ks6
python3-pyinstaller x86_64 5.13.0-2.ks6
python-pyinstaller-help aarch64 5.13.0-2.ks6
python3-pyinstaller aarch64 5.13.0-2.ks6

5. 修复方法


方法一:下载安装包进行升级安装
1、通过下载链接下载需要升级的升级包保存,如 xxx.rpm
2、通过rpm命令升级,如 rpm -Uvh xxx.rpm

方法二:通过软件源进行升级安装
1、保持能够连接上互联网
2、通过yum命令升级指定的包,如 yum install 包名

6. 下载链接

   

V6:

x86_64:

     python-pyinstaller-help   

     python3-pyinstaller   

aarch64:

     python-pyinstaller-help   

     python3-pyinstaller   

上一篇:KylinSec-SA-2024-4786 下一篇:KylinSec-SA-2024-4789