cve.bz

CVE-2026-39977 flatpak flatpak-builder: Path traversal

7.1 highExploit referenceEPSS 0.3%

High (7.1) in flatpak flatpak-builder. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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

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
EPSS
0.3% (unchanged from 0.3% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 23rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-04-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-39977 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-39977?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-39977?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-39977 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
flatpak:flatpak-builderfrom 1.4.5 before 1.4.8

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian14flatpak-builder1.4.8-1DEBIAN-CVE-2026-39977
Ubuntu25.10flatpak-builderno fix listedUBUNTU-CVE-2026-39977
Ubuntu26.04:LTSflatpak-builder1.4.8-1UBUNTU-CVE-2026-39977
openSUSETumbleweedflatpak-builder1.4.8-1.1openSUSE-SU-2026:10590-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

To exploit this issue, an attacker needs to convince a user to build a package via a crafted manifest or source, specifically, with a malicious `license-files` field. In automated build systems where untrusted packages may be processed, this issue can be exploited without user interaction but the attacker still has to introduce a malicious manifest into the build queue. Due to these reasons, this flaw has been rated with a moderate severity.

Red Hat's mitigation

To mitigate this issue, audit untrusted manifests and sources for suspicious license-files paths. Additionally, consider running the build process inside a container or a restricted sandbox environment to ensure the builder cannot access sensitive host files or credentials.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10flatpak-builderNot affected
Red Hat Enterprise Linux 8flatpak-builderNot affected
Red Hat Enterprise Linux 9flatpak-builderNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-39977.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON