Flatpak-builder: host code execution via `git am` hook execution in patch source extraction (`use-git-am`)
Red Hat / Red Hat Enterprise Linux 10、Red Hat Enterprise Linux 10.0 Extended Update Support、Red Hat Enterprise Linux 8、Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support、Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On、Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support +7
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.