CVEfocus › CVE database › CVE-2026-39977

CVE-2026-39977flatpak-builder has a path traversal leading to arbitrary file read on host when…

CVSS 7.1 HighEPSS 0.4% (higher than 25% of CVEs)Published 2026-04-09Updated 2026-04-09Assigner: GitHub_M

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.

CWE-22

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

2Fixed
1Will not fix
5Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04flatpak-builderFixed1.4.8-1UBUNTU-CVE-2026-39977
Ubuntu 25.10flatpak-builderWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-39977
Ubuntu 24.04flatpak-builderNot affected
vulnerable_code_not_present
Ubuntu 22.04flatpak-builderNot affected
vulnerable_code_not_present
Debian 14flatpak-builderFixed1.4.8-1DEBIAN-CVE-2026-39977
Red Hat Enterprise Linux 10flatpak-builderNot affected
Red Hat Enterprise Linux 9flatpak-builderNot affected
Red Hat Enterprise Linux 8flatpak-builderNot 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.

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.