A maintenance release for Flatpak, the Linux application sandboxing and distribution framework, has quietly fixed a security vulnerability that undermined one of the technology’s core promises: isolation. The bug, tracked as CVE-2025-4870, allowed a sandboxed application to obtain directory listings from the host system — information that should have been invisible to confined software.
The fix arrived in Flatpak 1.16.4, released on June 2, 2025. It also landed in version 1.14.12 for the older stable branch. Both updates address the same underlying problem, and Linux distribution maintainers are now in the process of pushing the patched packages to users.
The Vulnerability: A Sandbox With a Peephole
Flatpak’s entire value proposition rests on the idea that applications run inside a restricted environment. They shouldn’t be able to see, modify, or even know about files and directories on the host system unless explicitly granted permission. CVE-2025-4870 broke that contract.
According to the Phoronix report on the release, the flaw meant that “a sandboxed application can obtain a directory listing of a directory that it does not have access to.” The vulnerability doesn’t appear to have allowed reading file contents or writing data — just listing what exists in a given directory. That distinction matters, but it doesn’t make the bug trivial.
Knowing what files and directories exist on a host system is valuable reconnaissance. It can reveal usernames, installed software, configuration patterns, and directory structures that make subsequent attacks more targeted. For an attacker probing a system from inside a sandboxed app, a directory listing is a map.
The Flatpak project’s own GitHub release notes confirm the fix, listing CVE-2025-4870 among the changes in 1.16.4. The notes also reference additional bug fixes unrelated to security, including improvements to how Flatpak handles certain portal interactions and metadata processing.
Security researchers have long scrutinized Linux sandboxing mechanisms. Flatpak, Snap, and traditional container technologies all face the same fundamental challenge: the Linux kernel wasn’t originally designed with application-level sandboxing in mind. These tools layer isolation on top of existing kernel features — namespaces, seccomp filters, filesystem bind mounts — and the seams sometimes show.
This isn’t Flatpak’s first sandbox escape issue. In 2024, CVE-2024-42472 revealed a more severe problem where applications could potentially access files outside their sandbox through specific portal interactions. That bug drew sharper criticism. CVE-2025-4870 is narrower in scope but reinforces a pattern that Flatpak’s critics have pointed to for years: the sandbox isn’t as airtight as casual users might assume.
What Else Ships in 1.16.4
Beyond the security patch, the release includes a handful of maintenance fixes that matter to distributors and developers working with Flatpak daily. The update fixes a crash that could occur during certain operations, addresses issues with the way Flatpak resolves runtime dependencies, and corrects some edge cases in the command-line interface.
None of these are headline-grabbing changes. They’re the kind of incremental fixes that keep infrastructure software stable. But for the Linux distributions that ship Flatpak as a default application installation method — including Fedora, Linux Mint, and elementary OS — stability in this layer is non-negotiable. A crash in Flatpak can mean a user can’t install or update software at all.
The 1.14.12 release carries the same CVE fix backported to the older stable series. This matters because enterprise and long-term support distributions often pin to older Flatpak branches. Debian’s stable release, for instance, typically tracks the older series rather than the latest.
So who should care about this update? Anyone running Flatpak on a system where untrusted or semi-trusted applications are installed. That’s a broad category. Flatpak’s design encourages users to install software from third-party repositories like Flathub, where the vetting process, while improving, doesn’t match the rigor of traditional distribution packaging. If you’re running apps from Flathub, you’re implicitly trusting the sandbox to do its job. And until this patch, the sandbox had a hole.
The broader context here is a long-running debate within the Linux community about the right approach to application distribution and isolation. Canonical’s Snap format takes a different architectural approach, relying on AppArmor profiles and a centralized store. Flatpak uses a combination of bubblewrap (a sandboxing tool), OSTree (for content-addressed storage), and portal APIs that mediate access to host resources like files, printing, and screen capture.
Each approach has trade-offs. And each has had security issues.
What separates a well-maintained project from a troubled one isn’t the absence of vulnerabilities — it’s the speed and transparency of the response. By that measure, Flatpak’s handling of CVE-2025-4870 appears competent. The fix was developed, backported to the older branch, and released with a clear advisory. The CVE was assigned before the release, giving downstream distributors time to prepare.
The Bigger Picture for Linux Desktop Security
Linux desktop security has historically relied on a trust model fundamentally different from mobile platforms. On Android or iOS, every app runs in its own sandbox by default, with permissions granted explicitly. On a traditional Linux desktop, applications run with the full privileges of the user who launched them. Flatpak, Snap, and similar technologies are attempts to bring mobile-style isolation to the desktop.
But the transition is incomplete. Many Flatpak applications request broad permissions — access to the entire home directory, for instance — because they were designed for the traditional model and haven’t been rearchitected for confinement. The Flathub community has been working to tighten permissions across its catalog, but progress is slow. An app that requests --filesystem=home effectively opts out of meaningful filesystem isolation, making vulnerabilities like CVE-2025-4870 less relevant for that specific app but highlighting the uneven state of the overall security model.
For system administrators and security-conscious users, the takeaway is straightforward: update Flatpak to 1.16.4 (or 1.14.12 if on the older branch), review the permissions of installed Flatpak applications, and don’t treat the sandbox as an impenetrable barrier. It’s a layer of defense. A good one, mostly. But not perfect.
The Flatpak project maintains its source code and release notes on GitHub. Distribution-specific packages should appear in standard repositories within days of the upstream release, depending on each distribution’s update cadence.
One more thing. The fix is small. The implications aren’t. Every sandbox escape — even a partial one, even just a directory listing — erodes the trust model that makes sandboxed application distribution viable. Flatpak’s maintainers patched this one quickly. The question that lingers is how many similar issues remain undiscovered in the complex interplay between sandboxing tools and the Linux kernel’s filesystem layer.


WebProNews is an iEntry Publication