Wine
cpe:2.3:a:winehq:wine:*:*:*:*:*:*:*
- 11.9
A vulnerability exists in Wine due to its registration as a MIME handler for Windows executable file types, including EXE, MSI, and BAT files. This registration can lead to arbitrary code execution with the privileges of the user who invoked Wine. The issue is particularly concerning in Flatpak and Snap environments, where sandboxed applications can use D-Bus to open files with their default applications, potentially executing malicious code outside the sandbox. The vulnerability arises because Wine's MIME handling contradicts established guidelines that advise against executing code when opening files, creating a risk of unintended code execution.
Exploitation of this vulnerability allows sandboxed applications to execute arbitrary code outside of their confinement, bypassing security measures and potentially leading to malicious activities on the system.
The vulnerability can be reproduced by installing Wine from the official WineHQ repositories, which typically results in an unsandboxed installation. Once Wine is installed, a Flatpak application can write an EXE file to the disk and then use the 'org.freedesktop.portal.OpenURI.OpenFile' D-Bus method to open the file with Wine. This action will execute the EXE file with the permissions of the user who launched the application, effectively escaping the Flatpak sandbox.
Users can manually unregister Wine as a MIME handler for executable files, or ensure that Wine is installed in a sandboxed environment where it cannot affect other applications. Additionally, packaging systems could be modified to disable Wine's EXE file associations when Wine is installed in a sandbox.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.