---
id: CVE-2026-86320
title: >-
  A flaw was found in flatpak-builder where Git hooks are not disabled when
  applying patch sources with use-git-am: true
summary: >-
  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…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cwe:
  - CWE-94
vendor: Red Hat
product: flatpak-builder
affected:
  - flatpak-builder (all versions)
  - flatpak-builder (all versions)
  - flatpak-builder (all versions)
published: '2026-09-17'
updated: '2026-09-18'
sourceUpdated: '2026-09-18T19:06:08.407'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-86320'
references:
  - url: 'https://access.redhat.com/security/cve/CVE-2026-86320'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2471023'
    label: secalert@redhat.com
  - url: >-
      https://github.com/flatpak/flatpak-builder/security/advisories/GHSA-j5p8-jgjc-f3xv
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2471023'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: >-
      https://github.com/flatpak/flatpak-builder/security/advisories/GHSA-j5p8-jgjc-f3xv
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-86320.json
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-86320'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-86320'
tags:
  - nvd
  - cve.org
  - exploit-available
  - csaf
  - vex
  - red-hat
epss: 0.00218
epssPercentile: 0.12547
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-09-17T15:42:59.014535Z'
ingestedAt: '2026-09-17T08:14:19.086Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **Red Hat VEX** · Important · affected: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9 · no fix planned: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9 · updated 2026-09-17 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-86320.json)
