#VU84379 Creation of temporary file in directory with insecure permissions in pyinstaller


Published: 2023-12-13

Vulnerability identifier: #VU84379

Vulnerability 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

Exploitation vector: Local

Exploit availability: No

Vulnerable software:
pyinstaller
Universal components / Libraries / Libraries used by multiple products

Vendor: PyInstaller

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.


Latest bulletins with this vulnerability