{"id":"UBUNTU-CVE-2026-86320","details":"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.","modified":"2026-11-24T14:56:31.140102921Z","published":"2026-09-17T08:17:00Z","upstream":["CVE-2026-86320"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-86320"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-86320"},{"type":"REPORT","url":"https://github.com/flatpak/flatpak-builder/security/advisories/GHSA-j5p8-jgjc-f3xv"}],"affected":[{"package":{"name":"flatpak-builder","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/flatpak-builder?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.10.1-1","0.10.4-1","0.10.5-1","0.10.6-1","0.10.6-2","0.10.7-1","0.10.8-1","0.10.9-1","0.10.9-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"flatpak-builder","binary_version":"0.10.9-1ubuntu1"},{"binary_version":"0.10.9-1ubuntu1","binary_name":"flatpak-builder-tests"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-86320.json"}},{"package":{"name":"flatpak-builder","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/flatpak-builder?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.8-2","1.0.9-1","1.0.10-1"],"ecosystem_specific":{"binaries":[{"binary_name":"flatpak-builder","binary_version":"1.0.10-1"},{"binary_version":"1.0.10-1","binary_name":"flatpak-builder-tests"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-86320.json"}},{"package":{"name":"flatpak-builder","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/flatpak-builder?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.14-2","1.2.0-1","1.2.1-1","1.2.2-1","1.2.2-2"],"ecosystem_specific":{"binaries":[{"binary_name":"flatpak-builder","binary_version":"1.2.2-2"},{"binary_name":"flatpak-builder-tests","binary_version":"1.2.2-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-86320.json"}},{"package":{"name":"flatpak-builder","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/flatpak-builder?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.2.3-1","1.4.0-1","1.4.1-1","1.4.2-1build1","1.4.2-1build2"],"ecosystem_specific":{"binaries":[{"binary_version":"1.4.2-1build2","binary_name":"flatpak-builder"},{"binary_name":"flatpak-builder-tests","binary_version":"1.4.2-1build2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-86320.json"}},{"package":{"name":"flatpak-builder","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/flatpak-builder?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.4.8-1","1.4.9-1","1.4.10-1","1.4.11-1","1.4.12-1"],"ecosystem_specific":{"binaries":[{"binary_name":"flatpak-builder","binary_version":"1.4.12-1"},{"binary_name":"flatpak-builder-tests","binary_version":"1.4.12-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-86320.json"}},{"package":{"name":"flatpak-builder","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/flatpak-builder?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.4.6-2","1.4.7-1","1.4.8-1"],"ecosystem_specific":{"binaries":[{"binary_name":"flatpak-builder","binary_version":"1.4.8-1"},{"binary_name":"flatpak-builder-tests","binary_version":"1.4.8-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-86320.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"CNA"},{"type":"Ubuntu","score":"medium","source":"SELF"}]}