Intel

AIKIDO-2026-898934

flatpak is vulnerable to Link Following

Link FollowingGHSA-99wv-m8rp-g58x Published Aug 13, 2026

52

Medium Risk

This Affects:

OSflatpak
0.0.1 - 1.18.0
Fixed in 1.18.1
Are you affected? Scan for Free

TL;DR

When regenerating the runtime linker cache, Flatpak writes to ~/.var/app/$appid/.ld.so, a path a sandboxed app fully controls. A malicious app can replace that file with a symlink so that the cache regeneration writes its output at an arbitrary location outside the sandbox. The filename and content are fixed, which limits exploitability, but the write still escapes the sandbox. The fix hardens the symlink switch and cache regeneration to use fd-based operations.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

flatpak is vulnerable to Link Following in versions 0.0.1 - 1.18.0.

How to fix this

Upgrade the flatpak library to the patch version.