Flatpak-Builder Git Hook Exec via use-git-am Patch
CVE-2026-86320 Published on September 17, 2026
Flatpak-builder: host code execution via `git am` hook execution in patch source extraction (`use-git-am`)
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.
Vulnerability Analysis
CVE-2026-86320 is exploitable with local system access, requires user interaction. This vulnerability is considered to have a low attack complexity. Public availability of a proof of concept (POC) exploit exists for CVE-2026-86320. The potential impact of an exploit of this vulnerability is considered to be very high.
Timeline
Reported to Red Hat.
Made public. 94 days later.
Weakness Type
What is a Code Injection Vulnerability?
The software constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
CVE-2026-86320 has been classified to as a Code Injection vulnerability or weakness.
Products Associated with CVE-2026-86320
Want to know whenever a new CVE is published for Red Hat products? stack.watch will email you.
Affected Versions
Red Hat Enterprise Linux 10:- Version 0:1.4.4-1.el10_2.1 and below * is unaffected.
- Version 0:1.4.4-1.el10_0.1 and below * is unaffected.
- Version 0:1.2.3-2.el8_10 and below * is unaffected.
- Version 0:1.2.3-1.el9_8.1 and below * is unaffected.
- Version 0:1.2.2-2.el9_2 and below * is unaffected.
- Version 0:1.2.3-2.el9_4 and below * is unaffected.
- Version 0:1.2.3-1.el9_6.1 and below * is unaffected.