Insecure temporary directory in PyInstaller



Published: 2023-12-13
Risk Low
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2023-49797
CWE-ID CWE-379
Exploitation vector Local
Public exploit N/A
Vulnerable software
Subscribe
pyinstaller
Universal components / Libraries / Libraries used by multiple products

Vendor PyInstaller

Security Bulletin

This security bulletin contains one low risk vulnerability.

1) Creation of temporary file in directory with insecure permissions

EUVDB-ID: #VU84379

Risk: Low

CVSSv3.1: 2.9 [CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N/E:U/RL:O/RC:C]

CVE-ID: CVE-2023-49797

CWE-ID: CWE-379 - Creation of Temporary File in Directory with Insecure Permissions

Exploit availability: No

Description

The vulnerability allows a local user to delete arbitrary files on the system.

The vulnerability exists due to matplotlib and win32com applications use a temporary directory with insecure permissions. A local user can create symbolic links to critical files on the system and delete these files.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

pyinstaller: 1.0 - 5.13.0

External links

http://github.com/pyinstaller/pyinstaller/security/advisories/GHSA-9w2p-rh8c-v9g5
http://github.com/pyinstaller/pyinstaller/pull/7827
http://github.com/python/cpython/blob/0fb18b02c8ad56299d6a2910be0bab8ad601ef24/Lib/shutil.py#L623


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###