Path traversal in Flatpak - #VU141397
Published: August 11, 2026
Vulnerability details
The vulnerability allows a remote attacker to overwrite arbitrary files outside the working directory.
The vulnerability exists due to path traversal in flatpak build-init extension file copying when processing a malicious SDK container with crafted extension point metadata via --writable-sdk and --sdk-extension or extension copying options. A remote attacker can provide an SDK extension with a crafted directory path containing traversal sequences to overwrite arbitrary files outside the working directory.
Before copying, existing files at the traversed target path are deleted and replaced with the extension content.