{
  "id": "CVE-2026-86320",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-86320",
  "published_at": "2026-09-17T07:27:33.167Z",
  "title": "Flatpak-builder: host code execution via `git am` hook execution in patch source extraction (`use-git-am`)",
  "vendor": "Red Hat",
  "product": "Red Hat Enterprise Linux 10",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-94",
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 10",
        "ranges": null,
        "fixed_in": [
          "0:1.4.4-1.el10_2.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 10",
        "ranges": null,
        "fixed_in": [
          "0:1.4.7-1.el10_3.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 10.0 Extended Update Support",
        "ranges": null,
        "fixed_in": [
          "0:1.4.4-1.el10_0.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8",
        "ranges": null,
        "fixed_in": [
          "0:1.2.3-2.el8_10"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support",
        "ranges": null,
        "fixed_in": [
          "0:1.0.9-4.el8_4"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On",
        "ranges": null,
        "fixed_in": [
          "0:1.0.9-4.el8_4"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support",
        "ranges": null,
        "fixed_in": [
          "0:1.0.9-4.el8_6"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On",
        "ranges": null,
        "fixed_in": [
          "0:1.0.9-4.el8_6"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.8 Telecommunications Update Service",
        "ranges": null,
        "fixed_in": [
          "0:1.0.14-3.el8_8"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions",
        "ranges": null,
        "fixed_in": [
          "0:1.0.14-3.el8_8"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9",
        "ranges": null,
        "fixed_in": [
          "0:1.2.3-1.el9_8.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9",
        "ranges": null,
        "fixed_in": [
          "0:1.2.3-1.el9_9.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions",
        "ranges": null,
        "fixed_in": [
          "0:1.2.2-2.el9_2"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions",
        "ranges": null,
        "fixed_in": [
          "0:1.2.3-2.el9_4"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9.6 Extended Update Support",
        "ranges": null,
        "fixed_in": [
          "0:1.2.3-1.el9_6.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Red Hat Enterprise Linux 10 to 0:1.4.4-1.el10_2.1 or later.",
      "Upgrade Red Hat Enterprise Linux 10 to 0:1.4.7-1.el10_3.1 or later.",
      "Upgrade Red Hat Enterprise Linux 10.0 Extended Update Support to 0:1.4.4-1.el10_0.1 or later.",
      "Upgrade Red Hat Enterprise Linux 8 to 0:1.2.3-2.el8_10 or later.",
      "Upgrade Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support to 0:1.0.9-4.el8_4 or later.",
      "Upgrade Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On to 0:1.0.9-4.el8_4 or later.",
      "Upgrade Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support to 0:1.0.9-4.el8_6 or later.",
      "Upgrade Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On to 0:1.0.9-4.el8_6 or later.",
      "Upgrade Red Hat Enterprise Linux 8.8 Telecommunications Update Service to 0:1.0.14-3.el8_8 or later.",
      "Upgrade Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions to 0:1.0.14-3.el8_8 or later.",
      "Upgrade Red Hat Enterprise Linux 9 to 0:1.2.3-1.el9_8.1 or later.",
      "Upgrade Red Hat Enterprise Linux 9 to 0:1.2.3-1.el9_9.1 or later.",
      "Upgrade Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions to 0:1.2.2-2.el9_2 or later.",
      "Upgrade Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions to 0:1.2.3-2.el9_4 or later.",
      "Upgrade Red Hat Enterprise Linux 9.6 Extended Update Support to 0:1.2.3-1.el9_6.1 or later."
    ],
    "workarounds": [
      "Avoid using use-git-am: true when processing untrusted manifests or source material. Where untrusted builds are required, perform builds inside disposable virtual machines or other isolated environments."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:80495"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:80496"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:80973"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:84832"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:84833"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:84834"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:84842"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:86714"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
