On Fedora 45, the Flatpak package has been updated to version 1.18.6 to close CVE-2026-133842 (GHSA-p4mw-6jfq-r82r), a flaw that allowed a compromised or malicious Flatpak application, runtime, or extension using the extra-data mechanism to create setuid root files on the host system at install time. The issue was reported by researcher RoyalOughtness. This is not a subtle sandbox misconfiguration — it is a direct path from a poisoned Flatpak package to a root-owned, setuid executable on the host filesystem, completely defeating the sandbox model that Flatpak exists to enforce.
The defensive concern is amplified by the supply-chain angle. extra-data is a legitimate Flatpak feature used to deliver proprietary content that cannot be redistributed — the mechanism behind well-known Flathub packages such as Chrome and Steam. An attacker who compromises a publisher account, an upstream download source, or convinces a user to add a rogue remote can weaponize this feature. Because Flatpak installations are frequently performed through flatpak-system-helper running with elevated privileges (or via sudo flatpak install), the install-time file creation happens in a privileged context. Any host with Flatpak installed — developer workstations, engineering endpoints, CI runners, multi-user Linux systems — should treat this as a priority patch and audit event.
Technical Analysis
Affected products and platforms
- Product: Flatpak, patched to 1.18.6 in Fedora 45
- Distribution advisory: Fedora 45 Flatpak security update (advisory reference FEDORA-2026-967a114b7a, published via linuxsecurity.com)
- Vulnerable component: the
extra-datahandling path used during installation of apps, runtimes, and extensions - Platforms: Linux hosts running Flatpak, with Fedora 45 being the explicitly patched distribution in this advisory. Other distributions shipping vulnerable Flatpak builds should be checked against their own advisories.
How the vulnerability works — defender's view of the attack chain
The extra-data mechanism exists so that apps which cannot legally redistribute proprietary blobs (browsers, game clients) can ship a wrapper that fetches and processes that content during installation. In the vulnerable code path, file-creation operations driven by a malicious or compromised package were not sufficiently constrained, allowing files to be placed on the host with the setuid bit set and root ownership.
The attack chain from a defender's perspective:
- Delivery: The victim adds a malicious Flatpak remote, or installs an app from a legitimate remote whose publisher or upstream download source has been compromised (supply-chain scenario). The package uses the
extra-datafeature. - Install-time execution: The victim runs
flatpak install— commonly executed as root directly or via theflatpak-system-helperD-Bus service, meaning install-time file operations occur in a privileged context. - Sandbox escape artifact: The malicious package abuses the
extra-datapath to create a setuid root file on the host filesystem, outside the sandbox. - Privilege escalation: Any local unprivileged user executes the planted setuid binary and obtains root privileges on the host.
The exploitation requirement is simple: the victim must install the malicious package. No other user interaction is needed, and on multi-user systems the impact extends to every account on the box.
Exploitation status
- Fixed version: Flatpak 1.18.6 (Fedora 45)
- Advisory: GHSA-p4mw-6jfq-r82r; credit to RoyalOughtness
- CVSS: No score was published in the Fedora advisory at the time of writing. Given the install-time privilege-escalation-to-root impact, treat the severity as high for any multi-user or production Linux host.
- In-the-wild exploitation: No confirmed active exploitation or public PoC has been reported as of this writing.
- CISA KEV: Not listed at the time of writing; accordingly there is no federal remediation deadline. Do not let that lower your urgency — privilege-escalation primitives planted at install time are exactly the class of bug that gets quietly exploited before it gets loudly disclosed.
Detection & Response
Because exploitation occurs at install time inside a privileged Flatpak context, the highest-fidelity observables are: (1) setuid bits being set on files, (2) unexpected child processes of flatpak-system-helper, and (3) new setuid root files appearing on the host outside known-good baselines. The rules below target those behaviors while keeping false-positive rates manageable.
---
title: Setuid Bit Set via chmod on Linux Host
id: 3f2c9a41-7b6d-4e1a-9c8f-2a5b7d9e1f3c
status: experimental
description: Detects chmod invocations that set the setuid bit, a key observable for CVE-2026-133842 where a malicious Flatpak extra-data payload plants setuid root files on the host during installation.
references:
- https://linuxsecurity.com/advisories/fedora/fedora-45-flatpak-2026-967a114b7a
author: Security Arsenal
date: 2026/04/06
tags:
- attack.privilege_escalation
- attack.t1548
logsource:
category: process_creation
product: linux
detection:
selection_img:
Image|endswith:
- '/chmod'
selection_cmd:
CommandLine|contains:
- ' u+s '
- '4755'
- '4750'
- '4000'
- '6777'
- '4711'
condition: selection_img and selection_cmd
falsepositives:
- Legitimate package installation and system administration tasks that intentionally set setuid bits
level: medium
---
title: Flatpak System Helper Spawning Shell or File-Permission Tools
id: 8b1d4e6a-2c9f-4a7b-b3d1-6e8f0a2c4d5b
status: experimental
description: Detects unexpected child processes spawned by flatpak-system-helper during app installation, consistent with abuse of the extra-data mechanism (CVE-2026-133842) to manipulate host files outside the sandbox.
references:
- https://linuxsecurity.com/advisories/fedora/fedora-45-flatpak-2026-967a114b7a
author: Security Arsenal
date: 2026/04/06
tags:
- attack.privilege_escalation
- attack.execution
logsource:
category: process_creation
product: linux
detection:
selection_parent:
ParentImage|endswith: '/flatpak-system-helper'
selection_img:
Image|endswith:
- '/chmod'
- '/chown'
- '/bash'
- '/sh'
- '/cp'
- '/install'
condition: selection_parent and selection_img
falsepositives:
- Legitimate apply_extra scripts for apps using extra-data (e.g., proprietary browser or game client installs) may invoke shell utilities; correlate with the package being installed before escalating
level: high
// Hunt for setuid-bit chmod executions correlated with Flatpak install activity on Linux hosts ingested into Sentinel (CEF/Syslog)
let FlatpakActivity =
Syslog
| where TimeGenerated > ago(7d)
| where ProcessName in ("flatpak", "flatpak-system-helper")
| where SyslogMessage has_any ("install", "extra-data")
| summarize FlatpakEvents = make_list(SyslogMessage, 20) by Computer;
Syslog
| where TimeGenerated > ago(7d)
| where ProcessName =~ "chmod"
| where SyslogMessage has_any ("4755", "u+s", "chmod 4")
| join kind=inner (FlatpakActivity) on Computer
| project TimeGenerated, Computer, ProcessName, SyslogMessage, FlatpakEvents
| order by TimeGenerated desc
-- Hunt for setuid root files in system paths and Flatpak-managed directories
-- CVE-2026-133842: malicious extra-data payloads can plant setuid root files at install time
SELECT FullPath, Mode, Mtime AS Modified, Size
FROM glob(glob=["/usr/bin/*", "/usr/sbin/*", "/bin/*", "/sbin/*", "/usr/local/bin/*", "/var/lib/flatpak/**/*"])
WHERE Mode =~ "^\\S{3}s"
ORDER BY Mtime DESC
#!/usr/bin/env bash
# CVE-2026-133842 remediation and audit — Fedora 45 / Flatpak
set -euo pipefail
# 1. Report current Flatpak version (must be 1.18.6 or later after patching)
flatpak --version
rpm -q flatpak
# 2. Apply the Fedora security update (advisory FEDORA-2026-967a114b7a)
sudo dnf upgrade --refresh --advisory FEDORA-2026-967a114b7a
# Fallback if advisory-scoped upgrade is unavailable:
# sudo dnf upgrade flatpak
# 3. Verify the patched version landed
rpm -q flatpak
# 4. Snapshot all setuid files on the host and diff against your last known-good baseline
sudo find / -xdev -type f -perm -4000 2>/dev/null | sort \
| sudo tee "/var/log/setuid-audit-$(date +%F).txt" > /dev/null
# Then: diff /var/log/setuid-baseline.txt /var/log/setuid-audit-$(date +%F).txt
# Investigate any new entries — particularly binaries outside standard package-owned paths.
# 5. Inventory Flatpak remotes and installed apps; flag non-Flathub origins
flatpak remotes --columns=name,url
flatpak list --app --columns=application,origin
# 6. Identify installed apps using the extra-data mechanism (highest-risk surface for this CVE)
while read -r app; do
[ -z "$app" ] && continue
if flatpak info "$app" 2>/dev/null | grep -qi "extra-data"; then
echo "[EXTRA-DATA] $app"
fi
done < <(flatpak list --app --columns=application)
# 7. For any suspect extra-data app, purge host-side artifacts and reinstall from a trusted remote
# flatpak uninstall --delete-data <app-id>
# flatpak install flathub <app-id>
Remediation
- Patch immediately. Update to Flatpak 1.18.6 on Fedora 45 via
sudo dnf upgrade --refresh flatpakor by applying advisory FEDORA-2026-967a114b7a. On other distributions, check your vendor's Flatpak builds against GHSA-p4mw-6jfq-r82r and apply the equivalent fixed release. - Audit for existing setuid root artifacts. Patching prevents future abuse but does not remove files already planted. Build or restore a setuid baseline (
find / -xdev -type f -perm -4000) and investigate any binary that is not owned by a known system package (rpm -qf <path>on Fedora will confirm package ownership — anything orphaned is suspect). - Restrict and review Flatpak remotes. Enumerate configured remotes with
flatpak remotes --columns=name,url. Remove unvetted third-party remotes, standardize on Flathub, and consider disabling user-added remotes on managed endpoints via policy. - Inventory extra-data apps. Apps using
extra-dataare the exposed surface for this CVE. Enumerate them, verify their origin remote, and review their permissions withflatpak info --show-permissions <app-id>. Reinstall suspect apps from trusted remotes to purge install-time artifacts. - Reinstall, don't just update, suspect packages. Because the flaw triggers at install time, if there is any chance a package was installed from a compromised source prior to patching, a clean uninstall with
--delete-datafollowed by reinstall from a trusted remote is the safe path. - Workaround where patching is delayed. Until 1.18.6 is deployed, avoid installing or updating any Flatpak app, runtime, or extension that uses the
extra-datamechanism, and block addition of new remotes on production hosts. This eliminates the trigger condition. - Monitor continuously. Deploy the Sigma rules and Sentinel hunt above, and integrate periodic setuid sweeps (the Bash audit in this post) into your Linux endpoint compliance checks.
Official references: Fedora 45 Flatpak advisory via linuxsecurity.com and GitHub Security Advisory GHSA-p4mw-6jfq-r82r.
Related Resources
Security Arsenal Penetration Testing Services AlertMonitor Platform Book a SOC Assessment vulnerability-management Intel Hub
Is your security operations ready?
Get a free SOC assessment or see how AlertMonitor cuts through alert noise with automated triage.