CVE-2026-86320

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

Published Sep 17, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Flatpak-builder contains a flaw that fails to disable Git hooks when applying patch sources with the 'use-git-am: true' setting. An attacker able to supply malicious source material that includes a Git post-applypatch hook can trigger that hook during the build process, leading to arbitrary code execution on the host system with the privileges of the user running flatpak-builder.

Affected Systems

The defect affects systems running Red Hat Enterprise Linux 8, 9, and 10 where flatpak-builder is used to process untrusted source code. While no specific flatpak-builder release numbers are cited, any installation of the tool on those operating systems is potentially vulnerable if the flagged option is enabled during a build.

Risk and Exploitability

The CVSS base score of 7.8 indicates moderate to high severity, yet the EPSS score is below 1% and the vulnerability is not listed in the CISA KEV catalog, suggesting low exploitation probability so far. However, exploitation requires local access to a build environment or the ability to supply a malicious patch; an attacker with this capability could run arbitrary code with the builder user’s privileges. The recommended approach is to disable the 'use‑git‑am' flag for untrusted materials and to perform builds in isolated or disposable virtual machines until an official patch becomes available.

Remediation

Vendor Workaround

Avoid using use-git-am: true when processing untrusted manifests or source material. Where untrusted builds are required, perform builds inside disposable virtual machines or other isolated environments.


OpenCVE Recommended Actions

  • Disable the 'use-git-am' option when building from untrusted sources or manifests; this prevents Git hooks from executing during patch extraction.
  • Perform flatpak-builder builds inside disposable virtual machines or other isolated environments to contain any potential code execution.
  • Monitor Red Hat’s security advisories and update to any official flatpak-builder fix when it is released.

Generated by OpenCVE AI on September 18, 2026 at 01:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:10.3
References
Type Values Removed Values Added
First Time appeared Red Hat
Red Hat enterprise Linux
Vendors & Products Red Hat
Red Hat enterprise Linux
Type Values Removed Values Added
CPEs cpe:/a:redhat:rhel_aus:8.4::appstream
cpe:/a:redhat:rhel_eus_long_life:8.4::appstream
References
Type Values Removed Values Added
First Time appeared Redhat rhel Aus
Redhat rhel Eus Long Life
CPEs cpe:/a:redhat:rhel_aus:8.6::appstream
cpe:/a:redhat:rhel_eus_long_life:8.6::appstream
Vendors & Products Redhat rhel Aus
Redhat rhel Eus Long Life
References
Type Values Removed Values Added
First Time appeared Redhat rhel Tus
CPEs cpe:/a:redhat:rhel_e4s:8.8::appstream
cpe:/a:redhat:rhel_tus:8.8::appstream
Vendors & Products Redhat rhel Tus
References
Type Values Removed Values Added
First Time appeared Redhat rhel E4s
Redhat rhel Eus
CPEs cpe:/a:redhat:rhel_e4s:9.2::appstream
cpe:/a:redhat:rhel_e4s:9.4::appstream
cpe:/a:redhat:rhel_eus:9.6::appstream
Vendors & Products Redhat rhel E4s
Redhat rhel Eus
References
Type Values Removed Values Added
First Time appeared Redhat enterprise Linux Eus
CPEs cpe:/o:redhat:enterprise_linux_eus:10.0
Vendors & Products Redhat enterprise Linux Eus
References
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:8 cpe:/a:redhat:enterprise_linux:8::appstream
References
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:9
cpe:/a:redhat:enterprise_linux:9::appstream
cpe:/o:redhat:enterprise_linux:10.2
References
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Type Values Removed Values Added
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.
Title Flatpak-builder: host code execution via `git am` hook execution in patch source extraction (`use-git-am`)
First Time appeared Redhat
Redhat enterprise Linux
Weaknesses CWE-94
CPEs cpe:/o:redhat:enterprise_linux:10
Vendors & Products Redhat
Redhat enterprise Linux
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 11, 2026, 1:59 PM
Reserved
Sep 7, 2026, 5:35 AM
Status
Awaiting Analysis
Published
Sep 17, 2026, 8:17 AM
Modified
Nov 11, 2026, 2:17 PM