{"id":"CVE-2026-39977","aliases":["CVE-2026-39977"],"related":[],"kind":"vulnerability","state":"published","title":"flatpak-builder has a path traversal leading to arbitrary file read on host when installing licence files","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"flatpak-builder es una herramienta para construir flatpaks desde el código fuente. Desde 1.4.5 hasta antes de 1.4.8, la clave del manifiesto license-files acepta un array de rutas a archivos de licencia definidos por el usuario relativas al directorio fuente del módulo. Las rutas de ese array se resuelven usando g_file_resolve_relative_path() y se validan para permanecer dentro del directorio fuente mediante dos comprobaciones - g_file_get_relative_path() que no resuelve enlaces simbólicos y g_file_query_file_type() con G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS que solo se aplica al componente final de la ruta. La operación de copia se ejecuta en el host. Esto puede ser explotado mediante el uso de un manifiesto y/o fuente manipulados para leer archivos arbitrarios del host y capturarlos en la salida de la construcción. Esta vulnerabilidad está corregida en 1.4.8.","source":"nvd"}],"published":"2026-04-09T19:05:23.616Z","modified":"2026-10-26T00:10:00.150Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":7.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","score":6.3,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":">= 1.4.5, < 1.4.8","status":"affected"}],"vendor":"flatpak","product":"flatpak-builder","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"1.4.5","fixed":"1.4.8"}],"vendor":"flatpak","product":"flatpak-builder","cpe":"cpe:2.3:a:flatpak:flatpak-builder:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/flatpak/flatpak-builder/security/advisories/GHSA-6gm9-3g7m-3965","tags":["exploit","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-04-09T20:18:06.098Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-39977","url":"https://www.cve.org/CVERecord?id=CVE-2026-39977","licence":"CVE Terms of Use","modified":"2026-04-09T20:19:28.323Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-39977","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39977","licence":"Public domain","modified":"2026-10-26T00:10:00.150Z"}],"updatedAt":"2026-11-25T22:59:18.417Z","epss":{"score":0.00306,"percentile":0.25181,"date":"2026-12-01T12:00:22.000Z"}}