# CVE-2026-39977: flatpak-builder has a path traversal leading to arbitrary file read on host when installing licence files

- Severity: High 7.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 25% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-09T19:05:23.616Z
- Modified: 2026-10-26T00:10:00.150Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- flatpak flatpak-builder: >= 1.4.5, < 1.4.8; from 1.4.5 before 1.4.8

## Every score

- GitHub_M: CVSS:4.0 7.1 High `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`
- NVD: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N`

## References

- <https://github.com/flatpak/flatpak-builder/security/advisories/GHSA-6gm9-3g7m-3965> (exploit, vendor-advisory)

## Sources

- CVE List: [CVE-2026-39977](https://www.cve.org/CVERecord?id=CVE-2026-39977), CVE Terms of Use, modified 2026-04-09
- NVD: [CVE-2026-39977](https://nvd.nist.gov/vuln/detail/CVE-2026-39977), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-39977 · Whole record: https://cve.day/CVE-2026-39977.json · Rebuilt by cve.day 2026-11-25T22:59:18.417Z
