CVE-2026-39977flatpak-builder has a path traversal leading to arbitrary file read on host when…
flatpak-builder is a tool to build flatpaks from source. From 1.4.5 to before 1.4.8, the license-files manifest key takes an array of paths to user defined licence files relative to the source directory of the module. The paths from that array are resolved using g_file_resolve_relative_path() and validated to stay inside the source directory using two checks - g_file_get_relative_path() which does not resolve symlinks and g_file_query_file_type() with G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS which only applies to the final path component. The copy operation runs on host. This can be exploited by using a crafted manifest and/or source to read arbitrary files from the host and capture them into the build output. This vulnerability is fixed in 1.4.8.
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | flatpak-builder | Fixed | 1.4.8-1 | UBUNTU-CVE-2026-39977 |
| Ubuntu 25.10 | flatpak-builder | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-39977 | |
| Ubuntu 24.04 | flatpak-builder | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | flatpak-builder | Not affected vulnerable_code_not_present | ||
| Debian 14 | flatpak-builder | Fixed | 1.4.8-1 | DEBIAN-CVE-2026-39977 |
| Red Hat Enterprise Linux 10 | flatpak-builder | Not affected | ||
| Red Hat Enterprise Linux 9 | flatpak-builder | Not affected | ||
| Red Hat Enterprise Linux 8 | flatpak-builder | Not affected |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- flatpak-builder: affected: >= 1.4.5, < 1.4.8
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.