flatpak-builder Leaves Git Hooks Active When Applying Patches with use-git-am, Letting a Malicious Patch Source Run Arbitrary Code on the Build Host
Last refreshed2026-10-30
Status: UPDATED
| Advisory ID: CVE-2026-86320
Key Details
CVE
CVE-2026-86320
CVSS Score / Version
7.8 (High) / CVSS v3.1
Updated
2026-10-30
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS Prose
attack vector is local; attack complexity is low; privileges required is none; user interaction is required; scope is unchanged; confidentiality impact is high; integrity impact is high; availability impact is high.
Affected products
Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 8, and Red Hat Enterprise Linux 9
Classified as
CWE-94 (Improper Control of Generation of Code ('Code Injection'))
Exploitation prediction (EPSS)
0.22% probability of exploitation in the next 30 days (12% percentile) -- FIRST.org's EPSS model.
Affected Products, Subsystems & Sectors
Vendor
Product
Affected Versions
Patch Status
Red Hat
Red Hat Enterprise Linux 10
Red Hat
Red Hat Enterprise Linux 8
Red Hat
Red Hat Enterprise Linux 9
Subsystems
OT Supporting Infrastructure
Sectors
Multiple
What to Know
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. (NVD)
What to Do
Monitor Red Hat's web page for any future patch releases.