CVE-2026-39977
published high CVSS 4.0 · 7.1flatpak-builder has a path traversal leading to arbitrary file read on host when installing licence files
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| flatpak | — | flatpak-builder>= 1.4.5, < 1.4.8 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Tumbleweed | flatpak-builderaarch64 | Advisory build | 1.4.8-1.1 | OPENSUSE-SU-2026:10590-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | flatpak-builderppc64le | Advisory build | 1.4.8-1.1 | OPENSUSE-SU-2026:10590-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | flatpak-builders390x | Advisory build | 1.4.8-1.1 | OPENSUSE-SU-2026:10590-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | flatpak-builderx86_64 | Advisory build | 1.4.8-1.1 | OPENSUSE-SU-2026:10590-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| flatpak | flatpak-builder | >= 1.4.5, < 1.4.8 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
1Provider assertions
2GitHub_M · cna
flatpak-builder has a path traversal leading to arbitrary file read on host when installing licence files
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 89ee4d6d2b245809aa442d17d24cc2c311ce56d55ec75d7659ce0d7cd6b38526
- Ingested
- 23 Sep 2026, 09:12:25 UTC
- Source record
- Official CVE record