Wine MIME Handler Vulnerability Allows Sandbox Escape and Arbitrary Code Execution

Vulnerability

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.

Impact

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.

Reproduction

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.

Remediation

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.

Added: May 26, 2026, 8:29 PM
Updated: May 26, 2026, 8:29 PM

Vulnerability Rating

Custom Algorithm
spread
6.6
impact
2.5
exploitability
3.2
remediation
0.0
relevance
9.3
threat
1.6
urgency
0.0
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.