CVE-2024-32462
Reported by github_m · Published April 18, 2024
Flatpak is a system for building, distributing, and running sandboxed desktop applications on Linux. in versions before 1.10.9, 1.12.9, 1.14.6, and 1.15.8, a malicious or compromised Flatpak app could execute arbitrary code outside its sandbox. Normally, the `--command` argument of `flatpak run` expects to be given a command to run in the specified Flatpak app, optionally along with some arguments. However it is possible to instead pass `bwrap` arguments to `--command=`, such as `--bind`. It's possible to pass an arbitrary `commandline` to the portal interface `org.freedesktop.portal.Background.RequestBackground` from within a Flatpak app. When this is converted into a `--command` and arguments, it achieves the same effect of passing arguments directly to `bwrap`, and thus can be used for a sandbox escape. The solution is to pass the `--` argument to `bwrap`, which makes it stop processing options. This has been supported since bubblewrap 0.3.0. All supported versions of Flatpak require at least that version of bubblewrap. xdg-desktop-portal version 1.18.4 will mitigate this vulnerability by only allowing Flatpak apps to create .desktop files for commands that do not start with --. The vulnerability is patched in 1.15.8, 1.10.9, 1.12.9, and 1.14.6.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| flatpak-session-helper | Amazon Linux | 1.15.4-3.amzn2023.0.2 |
| flatpak-libs | Amazon Linux | 1.15.4-3.amzn2023.0.2, 1.0.9-10.amzn2.0.5 |
| flatpak | Alpine | 1.14.6-r1, 1.14.6-r0 |
| flatpak-selinux | Amazon Linux | 1.15.4-3.amzn2023.0.2 |
| flatpak-tests | Amazon Linux | 1.15.4-3.amzn2023.0.2 |
| flatpak-devel | Amazon Linux | 1.15.4-3.amzn2023.0.2 |
| flatpak | Amazon Linux | 1.15.4-3.amzn2023.0.2 |
| flatpak-builder | Amazon Linux | 1.0.0-10.amzn2.0.5 |
| flatpak | flatpak | 1.15.8, 1.14.6, 1.12.9, 1.10.9 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| flatpak | flatpak | < 1.10.9, >= 1.12.0, < 1.12.9, >= 1.14.0, < 1.14.6 |
| amazon:2023 | flatpak-session-helper | 0 |
| flatpak | flatpak | 1.15.0 |
| amazon:2023 | flatpak-libs | 0 |
| alpine | flatpak | 0, 0 |
| amazon:2023 | flatpak-selinux | 0 |
| amazon:2023 | flatpak-tests | 0 |
| amazon:2 | flatpak-libs | 0 |
| amazon:2023 | flatpak-devel | 0 |
| amazon:2023 | flatpak | 0 |
| amazon:2 | flatpak-builder | 0 |
| flatpak | flatpak | 1.15.0, 1.12.0, 1.14.0 |
| amazon:2 | flatpak-devel | 0 |
| amazon:2 | flatpak | 0 |
Timeline
- Apr 18, 2024 CVE Published
- Apr 19, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (21 in total, the first dated here)
- Dec 16, 2025 CVE Updated
- Jan 12, 2026 Security Advisory (12 in total, the first dated here)
- Oct 14, 2026 Distribution Patch (9 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-32462
vulnetix vdb fixes CVE-2024-32462
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-32462/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/flatpak/flatpak/security/advisories/GHSA-phv6-cpc2-2fgj x_refsource_CONFIRM
- https://github.com/flatpak/flatpak/commit/72016e3fce8fcbeab707daf4f1a02b931fcc004d x_refsource_MISC
- https://github.com/flatpak/flatpak/commit/81abe2a37d363f5099c3d0bdcd0caad6efc5bf97 x_refsource_MISC
- https://github.com/flatpak/flatpak/commit/b7c1a558e58aaeb1d007d29529bbb270dc4ff11e x_refsource_MISC
- https://github.com/flatpak/flatpak/commit/bbab7ed1e672356d1a78b422462b210e8e875931 x_refsource_MISC