CVE-2026-96276
Public on 2026-09-23
Modified on 2026-09-24
Description
flatpak build-init with --sdk-extensions or --base-extensions copies extension files into the build directory. The target path comes from the directory key in the extension point metadata and is resolved using g_file_resolve_relative_path, which resolves .. components. A malicious extension with directory=../../ causes its files to be written outside the build tree.
Before copying, the target path is cleaned with flatpak_rm_rf, so existing files at the traversed path are deleted and replaced with the extension's content.
Before copying, the target path is cleaned with flatpak_rm_rf, so existing files at the traversed path are deleted and replaced with the extension's content.
Severity
See what this means
CVSS v3 Base Score
See breakdown
Affected Packages
| Platform | Package | Release Date | Advisory | Status |
|---|---|---|---|---|
| Amazon Linux 2 - Core | flatpak | Pending Fix | ||
| Amazon Linux 2023 | flatpak | Pending Fix | ||
| Amazon Linux 2027 Preview | flatpak | Not Affected | ||
| Amazon Linux 2023 | flatpak-builder | Not Affected | ||
| Amazon Linux 2027 Preview | flatpak-builder | Not Affected |
CVSS Scores
| Score Type | Score | Vector | |
|---|---|---|---|
| Amazon Linux | CVSSv3 | 6.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L |