Description
In Flatpak before 1.18.1, a malicious sandboxed app can replace ~/.var/app/$appid/.ld.so with a symlink, causing regenerate_ld_cache to write files at an arbitrary location. The filenames and content are not attacker controlled, making this hard to exploit.
Published: 2026-09-23
Score: 4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Local File Write
Action: Patch
AI Analysis

Impact

In Flatpak releases before 1.18.1, a sandboxed application can replace the user‑specific ld.so file (~/.var/app/$appid/.ld.so) with a symbolic link. When Flatpak regenerates the LD cache, the symlink causes the process to write files under the user's home directory. The files created have predetermined names and contents, so the attacker cannot choose the file content or the exact target, but the write operation can overwrite or delete existing files, affecting user data.

Affected Systems

The flaw affects all versions of Flatpak before 1.18.1. Default releases are 1.18.0 and earlier. Distributions that have not applied the upstream 1.18.1 update, including many Linux distributions still shipping older Flatpak versions, remain vulnerable. For long‑term support (LTS) releases, backported patches are available in the flatpak‑1.16.x branch, which also requires the cherry‑picked glnx changes glnx_chaseat_full and glnx_chase_and_mkdirat to fully harden the operation.

Risk and Exploitability

The CVSS score of 4 indicates a moderate severity level, and the vulnerability is not listed in the CISA KEV catalog. No EPSS score is currently available. The attack vector requires that an attacker already has the ability to run a malicious sandboxed application with the user’s privileges; this is therefore a local file write scenario. Because the attacker cannot control the file name or content, the complexity of exploitation is limited to creating the symlink and triggering cache regeneration, but the impact remains significant for the affected user environment. The likelihood of exploitation is uncertain without EPSS data, but the presence of the flaw could be discovered and exploited by a targeted adversary within the user’s local environment.

Generated by OpenCVE AI on September 24, 2026 at 03:51 UTC.

Remediation

Vendor Solution

The issue has been fixed in version 1.18.1 by commits: * e13dfed https://github.com/flatpak/flatpak/commit/e13dfeda330625d2fecc3a54672dfd4dc9c83a5c "common: Fix return value and typos in flatpak_switch_symlink_and_remove" * f6c8fb5 https://github.com/flatpak/flatpak/commit/f6c8fb5fdb3737e2f45068afe12c4bf1d808fd55 "common: Use fd-based operations in flatpak_switch_symlink_and_remove" * 76c9296 https://github.com/flatpak/flatpak/commit/76c9296b6780ca67f44cf67f0823f086d692a592 "run: Harden regenerate_ld_cache against symlink attacks" For LTS operating system distributions, backports of these changes are available in the flatpak-1.16.x branch. Please note that cherry-picked libglnx changes "chase: Add internal glnx_chaseat_full for a strategic callback" and "chase: Add glnx_chase_and_mkdirat" are also required.


OpenCVE Recommended Actions

  • Upgrade Flatpak to 1.18.1 or apply the flatpak‑1.16.x backport for LTS distributions.
  • Ensure the backport includes the required libglnx cherry‑picked changes glnx_chaseat_full and glnx_chase_and_mkdirat.
  • If an upgrade is not immediately possible, restrict permissions on ~/.var/app/$appid/.ld.so to prevent untrusted applications from creating symlinks.
  • Audit running sandboxed applications for unexpected writes or symlink creation in user application data directories.

Generated by OpenCVE AI on September 24, 2026 at 03:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 26 Sep 2026 23:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 24 Sep 2026 00:15:00 +0000

Type Values Removed Values Added
Title Flatpak LD Cache Symlink Attack flatpak: Flatpak: Low integrity or availability impact via symlink manipulation
Weaknesses CWE-22
References
Metrics threat_severity

None

threat_severity

Moderate


Wed, 23 Sep 2026 18:45:00 +0000

Type Values Removed Values Added
Title Flatpak LD Cache Symlink Attack

Wed, 23 Sep 2026 17:00:00 +0000

Type Values Removed Values Added
Description In Flatpak before 1.18.1, a malicious sandboxed app can replace ~/.var/app/$appid/.ld.so with a symlink, causing regenerate_ld_cache to write files at an arbitrary location. The filenames and content are not attacker controlled, making this hard to exploit.
First Time appeared Flatpak
Flatpak flatpak
Weaknesses CWE-61
CPEs cpe:2.3:a:flatpak:flatpak:*:*:*:*:*:*:*:*
Vendors & Products Flatpak
Flatpak flatpak
References
Metrics cvssV3_1

{'score': 4, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L'}


cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-09-26T22:51:21.873Z

Reserved: 2026-09-23T16:54:16.535Z

Link: CVE-2026-96807

cve-icon Vulnrichment

Updated: 2026-09-26T22:49:06.208Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-09-23T17:17:25.703

Modified: 2026-09-26T23:16:42.380

Link: CVE-2026-96807

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-23T16:54:16Z

Links: CVE-2026-96807 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-24T04:00:13Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-61

    UNIX Symbolic Link (Symlink) Following