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

Published Apr 9, 2026
·
Updated

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 gfileresolverelativepath() and validated to stay inside the source directory using two checks - gfilegetrelativepath() which does not resolve symlinks and gfilequeryfiletype() with GFILEQUERYINFONOFOLLOWSYMLINKS 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.

Affected Software

2 affected components
Flatpak flatpak-builder>=1.4.5<1.4.8
Flatpak flatpak-builder>=1.4.5<1.4.8

Event History

Apr 9, 2026
CVE Published
via MITRE·07:05 PM
Data Sourced
via MITRE·07:05 PM
DescriptionWeakness
Data Sourced
via NVD·08:16 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-39977?

CVE-2026-39977 is classified as a medium severity vulnerability due to its potential for unauthorized file access.

2

How do I fix CVE-2026-39977?

To fix CVE-2026-39977, update flatpak-builder to version 1.4.8 or later to mitigate the path traversal vulnerability.

3

What versions are affected by CVE-2026-39977?

Versions of flatpak-builder from 1.4.5 to before 1.4.8 are affected by CVE-2026-39977.

4

What type of vulnerability is CVE-2026-39977?

CVE-2026-39977 is a path traversal vulnerability that can lead to arbitrary file read on the host.

5

Who is affected by CVE-2026-39977?

Users and developers utilizing flatpak-builder versions between 1.4.5 and 1.4.8 are at risk from CVE-2026-39977.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203