Intel

AIKIDO-2026-944819

flatpak is vulnerable to Path Traversal

Path TraversalGHSA-8qxj-x646-phcm Published Aug 13, 2026

62

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 flatpak build-init is run with --sdk-extensions or --base-extensions, it copies extension files into the build directory using a target path taken from the directory key in the extension metadata, resolved with an API that follows .. components. A malicious SDK that declares an extension point with a crafted directory value can cause files to be written outside the build tree, and existing files at the traversed path are deleted and replaced. This lets a crafted SDK write to arbitrary locations in the developer's host context. The fix uses fd-relative operations to prevent path traversal during extension copying.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you run flatpak build-init with --sdk-extensions or --base-extensions using an untrusted SDK.

Background info

flatpak is vulnerable to Path Traversal in versions 0.0.1 - 1.18.0.

How to fix this

Upgrade the flatpak library to the patch version.