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: n/a
KEV: No
Impact: Local File Write
Action: Apply Patch
AI Analysis

Impact

In versions of Flatpak prior to 1.18.1 a malicious sandboxed application can replace the user‑specific ld.so file with a symlink. During regenerate_ld_cache this symlink causes the cache regeneration process to write a file to an attacker‑controlled location inside the user’s home directory, leading to arbitrary file overwrite. While the attacker cannot control the name or contents of the written file, the overwrite can modify or delete critical user files, potentially allowing privilege escalation or data tampering.

Affected Systems

The vulnerability affects all Flatpak releases before 1.18.1. Flatpak users running the default 1.18.0 or older, including those on distributions where the 1.18.1 update has not been applied, are at risk. Backported fixes are available for LTS distributions in the flatpak‑1.16.x branch, requiring the cherry‑picked glnx changes to be present.

Risk and Exploitability

The CVSS score of 4 indicates moderate severity, and there is no current EPSS data or KEV listing. The attack vector requires the presence of a sandboxed application already executed with user privileges, making it a local privilege escalation scenario rather than a remote attack. Because the attacker cannot control the file name or content, exploitation complexity is lower, but the impact remains significant for the affected user environment.

Generated by OpenCVE AI on September 23, 2026 at 18:24 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 version 1.18.1 or apply the fixed backport from the flatpak‑1.16.x branch on LTS distributions.
  • Ensure the flatpak‑1.16.x backport includes the required cherry‑picked libglnx changes – glnx_chaseat_full and glnx_chase_and_mkdirat – to fully harden the cache regeneration process.
  • If an upgrade is not immediately possible, restrict file system permissions on ~/.var/app/$appid/.ld.so to prevent creation of symlinks by untrusted applications.

Generated by OpenCVE AI on September 23, 2026 at 18:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

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-23T16:54:16.931Z

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

Link: CVE-2026-96807

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

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

Link: CVE-2026-96807

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-23T19:15:10Z

Weaknesses
  • CWE-61

    UNIX Symbolic Link (Symlink) Following