CVE-2026-133845 in Red Hat
Summary
by MITRE • 11/27/2026
A flaw was found in Flatpak’s flatpak-portal. When a sandboxed application invokes Spawn() and maps two different file descriptors to the same handle, dup2() can fail. Affected Flatpak versions do not handle that failure, so a file descriptor that was open inside flatpak-portal (commonly the unfiltered D-Bus session bus) can be passed into the subsandbox. A malicious or compromised Flatpak app with no special privileges can use this to escape the sandbox.
If you want to get the best quality for vulnerability data then you always have to consider VulDB.
Analysis
by VulDB Data Team • 11/27/2026
The vulnerability identified in Flatpak’s flatpak-portal component represents a critical security flaw rooted in improper error handling during file descriptor management within the application sandboxing mechanism. This issue specifically manifests when a sandboxed application invokes the Spawn() function and attempts to map two distinct file descriptors to the same handle using dup2(). In standard POSIX-compliant systems, if one of these operations fails or encounters an unexpected state, the system may return an error code indicating that the operation could not be completed. However, affected versions of Flatpak fail to adequately check for this failure condition, leading to a logic error where the application proceeds under the assumption that the file descriptor mapping was successful when it was not.
This oversight results in a significant security breach known as sandbox escape. Specifically, because the error is ignored, a file descriptor that remains open within the flatpak-portal process itself can inadvertently be passed into the subsandbox environment of the unprivileged application. The most common instance of this exposed resource is the unfiltered D-Bus session bus handle. By gaining access to this internal file descriptor, a malicious or compromised Flatpak application effectively bypasses the isolation boundaries intended by the sandboxing architecture. This allows the application to communicate directly with other processes on the host system that it should not have access to, undermining the fundamental security model of containerized desktop applications.
From an operational impact perspective, this vulnerability enables privilege escalation and unauthorized information disclosure. An attacker who can execute arbitrary code within a Flatpak sandboxed environment can exploit this flaw to interact with the D-Bus session bus without restriction. This capability allows the malicious application to send messages to other services running on the user’s desktop, potentially leading to further exploitation such as controlling system settings, accessing sensitive data from other applications, or launching additional attacks against host-side processes. The severity is heightened by the fact that no special privileges are required for the initial sandboxed app; any standard Flatpak application can leverage this flaw, making it a low-barrier vector for compromise in environments where users rely on Flatpak for security isolation.
This vulnerability aligns with CWE-252, which describes unchecked return values leading to unexpected behavior, and more specifically relates to improper input validation that results in the leakage of sensitive resources across trust boundaries. In terms of offensive cybersecurity frameworks, this exploit technique corresponds to ATT&CK tactic T1055, Process Injection or Interception, as it involves hijacking communication channels between processes. It also touches upon T1608, Stage Capabilities, by allowing an attacker to establish a foothold and expand their reach within the host system from a seemingly isolated container.
To mitigate this risk, users should immediately update Flatpak to the latest patched version where the flatpak-portal component correctly handles errors returned by dup2() and similar file descriptor operations. Developers integrating or maintaining sandboxed applications must ensure that all inter-process communication channels are rigorously validated before being passed into restricted environments. Furthermore, security audits of containerization logic should prioritize checking for proper error handling in system calls related to resource management, ensuring that failures do not result in the unintended exposure of internal handles to untrusted contexts.