CVE-2026-86320 PUBLISHED

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

Assigner: redhat
Reserved: 07.09.2026 Published: 17.09.2026 Updated: 17.09.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS Score: 7.8

Product Status

Vendor Red Hat
Product Red Hat Enterprise Linux 10
Versions Default: affected

Workarounds

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.

Credits

  • Red Hat would like to thank AISLE Research for reporting this issue.

References

Problem Types

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