CVE-2026-86320 Flatpak-builder: host code execution via `git am` hook execution in patch source extraction (`use-git-am`)

High 7.8 Published Updated

Attackers can execute arbitrary code on the host by providing malicious Git hooks in patch sources when use-git-am is enabled.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-86320?

CVE-2026-86320 is a high-severity code injection vulnerability in Red Hat Enterprise Linux 10, published on 17 Sep 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

A flaw was found in flatpak-builder where Git hooks are not disabled when applying patch sources with use-git-am: true. An attacker who can provide a malicious source containing a Git post-applypatch hook can cause the hook to execute on the host during the build process, resulting in arbitrary code execution with the privileges of the user running flatpak-builder.

Weakness: CWE-94

Which versions are affected by CVE-2026-86320?

Linux distribution packages (28)
flatpak-builder AlmaLinux:10All versions1.4.4-1.el10_2.1
flatpak-builder AlmaLinux:8All versions1.2.3-2.el8_10
flatpak-builder AlmaLinux:9All versions1.2.3-1.el9_8.1
flatpak-builder Red Hat:enterprise_linux:10.2All versions0:1.4.4-1.el10_2.1
flatpak-builder-debuginfo Red Hat:enterprise_linux:10.2All versions0:1.4.4-1.el10_2.1
flatpak-builder-debugsource Red Hat:enterprise_linux:10.2All versions0:1.4.4-1.el10_2.1
flatpak-builder Red Hat:enterprise_linux:8::appstreamAll versions0:1.2.3-2.el8_10
flatpak-builder-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:1.2.3-2.el8_10
flatpak-builder-debugsource Red Hat:enterprise_linux:8::appstreamAll versions0:1.2.3-2.el8_10
flatpak-builder Red Hat:enterprise_linux:9::appstreamAll versions0:1.2.3-1.el9_8.1
flatpak-builder-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:1.2.3-1.el9_8.1
flatpak-builder-debugsource Red Hat:enterprise_linux:9::appstreamAll versions0:1.2.3-1.el9_8.1
flatpak-builder Red Hat:enterprise_linux_eus:10.0All versions0:1.4.4-1.el10_0.1
flatpak-builder-debuginfo Red Hat:enterprise_linux_eus:10.0All versions0:1.4.4-1.el10_0.1
flatpak-builder-debugsource Red Hat:enterprise_linux_eus:10.0All versions0:1.4.4-1.el10_0.1
flatpak-builder Red Hat:rhel_e4s:9.2::appstreamAll versions0:1.2.2-2.el9_2
flatpak-builder-debuginfo Red Hat:rhel_e4s:9.2::appstreamAll versions0:1.2.2-2.el9_2
flatpak-builder-debugsource Red Hat:rhel_e4s:9.2::appstreamAll versions0:1.2.2-2.el9_2
flatpak-builder Red Hat:rhel_e4s:9.4::appstreamAll versions0:1.2.3-2.el9_4
flatpak-builder-debuginfo Red Hat:rhel_e4s:9.4::appstreamAll versions0:1.2.3-2.el9_4
flatpak-builder-debugsource Red Hat:rhel_e4s:9.4::appstreamAll versions0:1.2.3-2.el9_4
flatpak-builder Red Hat:rhel_eus:9.6::appstreamAll versions0:1.2.3-1.el9_6.1
flatpak-builder-debuginfo Red Hat:rhel_eus:9.6::appstreamAll versions0:1.2.3-1.el9_6.1
flatpak-builder-debugsource Red Hat:rhel_eus:9.6::appstreamAll versions0:1.2.3-1.el9_6.1
flatpak-builder Rocky Linux:10All versions0:1.4.4-1.el10_2.1
flatpak-builder Rocky Linux:8All versions0:1.2.3-2.el8_10
flatpak-builder Rocky Linux:9All versions0:1.2.3-1.el9_8.1
flatpak-builder openSUSE:TumbleweedAll versions1.4.12-1.1

How do I fix CVE-2026-86320?

Apply the vendor's patch.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-86320 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-86320 exists.

Sources

Also known as ALSA-2026:80495, ALSA-2026:80496, ALSA-2026:80973, CLSA-2026-1792771054, DEBIAN-CVE-2026-86320, GHSA-rvpr-5p35-6vf8 and 17 more.

Is CVE-2026-86320 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free