CVE-2021-43860

8.2 HIGH

📋 TL;DR

This vulnerability in Flatpak allows malicious applications to grant themselves hidden permissions without user consent by exploiting a null byte in metadata files. Users who install Flatpak applications from untrusted sources are at risk, as attackers can craft metadata to hide additional permissions after a null terminator.

💻 Affected Systems

Products:
  • Flatpak
Versions: All versions before 1.12.3 and 1.10.6
Operating Systems: Linux distributions with Flatpak support
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects users who install Flatpak applications from untrusted sources or repositories.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Malicious Flatpak applications gain unauthorized system access, potentially leading to data theft, privilege escalation, or complete system compromise.

🟠

Likely Case

Malicious applications gain additional permissions beyond what users approved, enabling unauthorized access to system resources or user data.

🟢

If Mitigated

With proper controls and trusted sources, risk is limited to applications that users intentionally install from verified repositories.

🌐 Internet-Facing: MEDIUM
🏢 Internal Only: LOW

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: LOW

Exploitation requires users to install malicious Flatpak applications from untrusted sources.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 1.12.3 or 1.10.6

Vendor Advisory: https://github.com/flatpak/flatpak/security/advisories/GHSA-4ppf-fxf6-vxg2

Restart Required: No

Instructions:

1. Update Flatpak using your distribution's package manager. 2. For Ubuntu/Debian: sudo apt update && sudo apt upgrade flatpak. 3. For Fedora/RHEL: sudo dnf update flatpak. 4. For Arch: sudo pacman -Syu flatpak.

🔧 Temporary Workarounds

Manual permission verification

linux

Manually check permissions of installed Flatpak applications by examining metadata files

flatpak info --show-permissions <app-id>
flatpak info --show-metadata <app-id> | grep -a xa.metadata

🧯 If You Can't Patch

  • Only install Flatpak applications from trusted, official repositories
  • Audit existing Flatpak installations for suspicious permissions or metadata

🔍 How to Verify

Check if Vulnerable:

Check Flatpak version: flatpak --version. If version is below 1.12.3 (for 1.12.x) or below 1.10.6 (for 1.10.x), system is vulnerable.

Check Version:

flatpak --version

Verify Fix Applied:

Verify Flatpak version is 1.12.3 or higher, or 1.10.6 or higher: flatpak --version

📡 Detection & Monitoring

Log Indicators:

  • Unusual permission grants during Flatpak installation
  • Suspicious metadata modifications in Flatpak applications

Network Indicators:

  • Downloads from untrusted Flatpak repositories

SIEM Query:

Process execution of flatpak install from non-standard sources or with unusual parameters

🔗 References

📤 Share & Export