CVE-2026-86320
Flatpak-builder: host code execution via `git am` hook execution in patch source extraction (`use-git-am`)
HIGH 7.8
At a glance
- Source
- NVD
- EPSS
- EPSS 0.29 % · percentile 21 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- redhat
- NVD status
- Awaiting Analysis
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.
Weaknesses (CWE)
- CWE-94 — Improper Control of Generation of Code
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/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
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | redhat |
| CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | NVD · secalert@redhat.com (Secondary) |
European references
- ENISA EUVD · EUVD-2026-81387
- GCVE · GCVE-0-2026-86320
Affected products
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |