CVE-2026-48831 Overview
CVE-2026-48831 affects Wine, the compatibility layer used to run Windows applications on Linux and other Unix-like operating systems. Wine ships a .desktop file that registers itself as a Multipurpose Internet Mail Extensions (MIME) handler for .exe files and other Windows executable types. In some configurations, opening an EXE file through this handler causes the file to execute with the permissions of the invoker. This behavior allows attackers to escape Flatpak and Snap sandboxes, since MIME handlers were not designed to invoke code interpreters or loaders. The issue is tracked under CWE-669: Incorrect Resource Transfer Between Spheres.
Critical Impact
Attackers can escape Flatpak and Snap container sandboxes by routing Windows executables through the Wine MIME handler, gaining the invoker's permissions on the host.
Affected Products
- Wine (WineHQ compatibility layer)
- Linux distributions shipping Wine with default .desktop MIME registrations
- Flatpak and Snap deployments that interoperate with the host Wine installation
Discovery Timeline
- 2026-05-19 - Public discussion opened on the OpenWall OSS-Security mailing list
- 2026-05-24 - CVE-2026-48831 published to the National Vulnerability Database (NVD)
- 2026-05-25 - Follow-up update posted to OpenWall OSS-Security
- 2026-05-26 - Last updated in NVD database
Technical Details for CVE-2026-48831
Vulnerability Analysis
Wine installs a .desktop file that advertises itself as the system MIME handler for Windows executable types, including application/x-ms-dos-executable and related MIME types for EXE, MSI, and similar binaries. When a user or application opens a file of one of these types through the desktop environment's MIME dispatch mechanism, Wine loads and executes the binary directly. Execution occurs with the privileges of the invoking process rather than within a constrained interpreter context.
The behavior breaks the trust boundary assumed by container runtimes such as Flatpak and Snap. These sandboxes rely on MIME handlers being inert viewers or editors, not loaders capable of running arbitrary native code. An EXE file dropped into a shared directory or opened from inside a sandboxed application is dispatched to the host Wine handler and runs outside the sandbox.
Root Cause
The root cause is the resource transfer flaw classified under [CWE-669]. Wine treats inbound MIME-dispatched files as trusted execution targets, even though MIME registration carries no contract about the safety of the content. Upstream maintainers have indicated that no obvious fix preserves Wine's usability across all supported platforms, since alternatives such as binfmt_misc are not universally available.
Attack Vector
Exploitation requires local access and user interaction. An attacker delivers an EXE payload through a sandboxed application, a downloaded archive, or a shared filesystem. When the file is opened through the standard MIME dispatch path, Wine receives the request and runs the executable with the invoker's permissions. From inside a Flatpak or Snap context, this yields code execution on the host. Refer to the WineHQ Bug Report #59767 and OpenWall OSS-Security Discussion for technical details.
Detection Methods for CVE-2026-48831
Indicators of Compromise
- Unexpected wine or wine64 processes spawned as a child of xdg-open, gio open, or desktop file dispatch helpers
- EXE, MSI, or LNK files written to Flatpak or Snap shared directories such as ~/.var/app/<id>/ and ~/snap/<id>/common/
- Modifications to ~/.local/share/applications/wine-extension-exe.desktop or related MIME associations
Detection Strategies
- Monitor process lineage for Wine binaries launched outside expected application workflows
- Audit mimeapps.list and mimeinfo.cache entries for handlers pointing at Wine for executable MIME types
- Alert on sandboxed application processes writing executables to host-accessible paths
Monitoring Recommendations
- Enable Linux auditd rules covering execve of wine, wine64, and wineloader with parent context
- Forward desktop environment dispatch logs and Flatpak/Snap portal activity to a centralized log platform
- Correlate file create events for Windows executable extensions with subsequent Wine process execution
How to Mitigate CVE-2026-48831
Immediate Actions Required
- Remove or disable the Wine .desktop MIME registration for executable types using xdg-mime or by editing mimeapps.list
- Restrict Flatpak and Snap permissions that grant access to host directories where executables may land
- Inventory systems where Wine is installed alongside Flatpak or Snap workloads and prioritize them for review
Patch Information
No upstream patch is currently available. Wine maintainers have stated that the MIME handler behavior may not be addressed within Wine itself, as referenced in WineHQ Bug Report #59767 and the OpenWall OSS-Security Update. Track distribution advisories for downstream mitigations such as removing the offending .desktop entry.
Workarounds
- Unset Wine as the default handler for application/x-ms-dos-executable and related MIME types with xdg-mime default pointing to a non-executing viewer
- Delete or override wine-extension-exe.desktop and similar files under /usr/share/applications/ using a local override in ~/.local/share/applications/
- Configure Flatpak and Snap profiles to deny portal-based opening of executable MIME types from sandboxed applications
# Configuration example
# Remove Wine as the MIME handler for Windows executables
xdg-mime default text-viewer.desktop application/x-ms-dos-executable
xdg-mime default text-viewer.desktop application/x-msi
xdg-mime default text-viewer.desktop application/x-msdownload
# Mask the Wine desktop entries that register the handlers
for f in wine-extension-exe.desktop wine-extension-msi.desktop wine-extension-bat.desktop; do
cp /dev/null "$HOME/.local/share/applications/$f"
done
update-desktop-database "$HOME/.local/share/applications"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

