Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2026-86320
Linux Debian vulnerability analysis and mitigation

Overview

CVE-2026-86320 is a vulnerability in flatpak-builder that allows arbitrary host code execution via git hooks during module source extraction. When use-git-am: true is enabled for a patch source, flatpak-builder invokes git am without disabling git hooks, enabling a malicious source to execute arbitrary code on the host. Affected versions are >=0.99.2 and <=1.4.10; the issue is patched in version >=1.4.11. The CVE is currently in Reserved status, with the advisory published on September 12, 2026, and a CVSS category estimate of HIGH (GitHub Advisory, Feedly).

Technical details

The root cause is classified as CWE-829 (Inclusion of Functionality from Untrusted Control Sphere). When use-git-am: true is set in a flatpak-builder manifest for a patch source, flatpak-builder calls git am to apply patches without passing flags (such as --no-verify) to suppress git hook execution. Because git runs unsandboxed in the host context at this stage, a malicious repository can include a post-applypatch hook in .git/hooks/post-applypatch that is automatically triggered upon successful patch application, executing arbitrary commands with the privileges of the host user running flatpak-builder. A public proof-of-concept demonstrating the full attack chain is included in the GitHub Security Advisory (GitHub Advisory).

Impact

Successful exploitation allows an attacker who controls a malicious source repository or manifest to execute arbitrary code on the host system with the privileges of the user running flatpak-builder. Since git operates outside the Flatpak sandbox during the build phase, there is no sandboxing boundary to limit the impact. This could lead to full host compromise, data exfiltration, installation of persistent malware, or lateral movement depending on the privileges of the build user (GitHub Advisory).

Exploitability

A public proof-of-concept script is included in the GitHub Security Advisory, demonstrating end-to-end exploitation. Exploitation requires that the victim use use-git-am: true in a flatpak-builder manifest pointing to an attacker-controlled or compromised source. No evidence of in-the-wild exploitation has been reported as of the advisory date. The CVE is currently in Reserved status, and no EPSS score or CISA KEV catalog entry is available at this time (GitHub Advisory, Feedly).

Exploitation steps

  1. Prepare malicious repository: Create a git repository with a crafted post-applypatch hook in .git/hooks/post-applypatch containing the desired payload (e.g., a reverse shell or command execution script), and make it executable with chmod +x.
  2. Package the repository: Archive the malicious repository as a tarball (e.g., tar -czf sample.tar.gz) and compute its SHA-256 hash for use in the manifest.
  3. Craft a malicious manifest: Create a flatpak-builder JSON manifest that references the malicious tarball as a source, includes a patch file, and sets use-git-am: true for the patch source entry.
  4. Deliver the manifest: Trick the victim into using the malicious manifest — for example, by contributing to an open-source project, submitting a pull request, or distributing the manifest through a package repository.
  5. Trigger exploitation: When the victim runs flatpak-builder with the malicious manifest, git am applies the patch and automatically executes the post-applypatch hook on the host, running the attacker's payload with the host user's privileges (GitHub Advisory).

Indicators of compromise

  • File System: Presence of unexpected or recently modified files in .git/hooks/ directories within flatpak build working directories, particularly post-applypatch, pre-applypatch, or applypatch-msg hooks with executable permissions.
  • Process: Unexpected child processes spawned by git or flatpak-builder during a build (e.g., shell scripts, curl, wget, nc, python, or other network/execution utilities).
  • Logs: Build logs showing execution of git hooks during git am operations; unexpected output or errors in flatpak-builder build logs not attributable to normal build steps.
  • Network: Outbound network connections initiated by git or shell processes during a flatpak-builder build to unknown external hosts (GitHub Advisory).

Mitigation and workarounds

Upgrade flatpak-builder to version >=1.4.11, which addresses this vulnerability. As a workaround, avoid using use-git-am: true in manifests that reference untrusted or third-party sources. Additionally, performing builds inside disposable virtual machines or containers can limit the blast radius if exploitation occurs. Debian Linux users should monitor vendor advisories, as no vendor-supplied patch was available at the time of initial Feedly detection (GitHub Advisory, Feedly).

Community reactions

The advisory was published by maintainer bbhtt on the flatpak-builder GitHub repository on September 12, 2026. The severity was assessed as Low by the advisory authors, though Feedly's automated analysis estimates the CVSS category as HIGH. A Nessus detection plugin (ID 345679) was published by Tenable shortly after the advisory. No significant broader media coverage or notable researcher commentary beyond the advisory itself has been identified at this time (GitHub Advisory, Tenable).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

flatpak-builder

Affected

sid

flatpak-builder: 1.4.11-1

Fixed

trixie

flatpak-builder

Affected

Ubuntu

Unknown

bionic (esm-apps)

flatpak-builder

Unknown

devel

flatpak-builder

Unknown

focal (esm-apps)

flatpak-builder

Unknown

jammy

flatpak-builder

Unknown

jammy (esm-apps)

flatpak-builder

Unknown

noble

flatpak-builder

Unknown

noble (esm-apps)

flatpak-builder

Unknown

resolute

flatpak-builder

Unknown

RHEL / CentOS

Affected

RHEL 8

flatpak-builder.src

Affected

RHEL 9

flatpak-builder.src

Affected

RHEL 10

flatpak-builder.src

Affected

Alpine

Fixed

edge

flatpak-builder: 1.4.11-r0

Fixed

SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-61721HIGH8
  • Linux Debian logoLinux Debian
  • fluidsynth
NoYesSep 18, 2026
CVE-2026-61714HIGH7.8
  • Linux Debian logoLinux Debian
  • fluidsynth
NoYesSep 18, 2026
CVE-2026-61723MEDIUM6.8
  • Linux Debian logoLinux Debian
  • fluidsynth
NoYesSep 18, 2026
CVE-2026-61722MEDIUM6.8
  • Linux Debian logoLinux Debian
  • fluidsynth
NoYesSep 18, 2026
CVE-2026-61720MEDIUM6.2
  • Linux Debian logoLinux Debian
  • fluidsynth
NoYesSep 18, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management