{
  "id": "CVE-2026-96442",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-96442",
  "published_at": "2026-09-23T10:10:36.734Z",
  "title": "Emacs: emacs: arbitrary code execution in flymake mode",
  "vendor": "GNU Emacs",
  "product": "GNU Emacs",
  "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 code execution flaw was found in Emacs, affecting versions prior to 31.2. The Flymake mode using language backends other than Lisp would execute arbitrary code from the edited file while performing syntax checking. Viewing or editing untrusted files using Emacs could lead to arbitrary code execution with the privileges of the user running Emacs.",
  "cwe": "CWE-94",
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "GNU Emacs",
        "product": "GNU Emacs",
        "ranges": [
          "\u003c 31.2"
        ],
        "fixed_in": [
          "31.2"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 10",
        "ranges": null,
        "fixed_in": [
          "1:29.4-14.el10_2.3"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 10",
        "ranges": null,
        "fixed_in": [
          "1:29.4-17.el10_3"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8",
        "ranges": null,
        "fixed_in": [
          "1:26.1-15.el8_10.4"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8",
        "ranges": null,
        "fixed_in": [
          "1:26.1-15.el8_10.4"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9",
        "ranges": null,
        "fixed_in": [
          "1:27.2-18.el9_8.3"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9",
        "ranges": null,
        "fixed_in": [
          "1:27.2-18.el9_9.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade GNU Emacs to 31.2 or later.",
      "Upgrade Red Hat Enterprise Linux 10 to 1:29.4-14.el10_2.3 or later.",
      "Upgrade Red Hat Enterprise Linux 10 to 1:29.4-17.el10_3 or later.",
      "Upgrade Red Hat Enterprise Linux 8 to 1:26.1-15.el8_10.4 or later.",
      "Upgrade Red Hat Enterprise Linux 8 to 1:26.1-15.el8_10.4 or later.",
      "Upgrade Red Hat Enterprise Linux 9 to 1:27.2-18.el9_8.3 or later.",
      "Upgrade Red Hat Enterprise Linux 9 to 1:27.2-18.el9_9.1 or later."
    ],
    "workarounds": [
      "To mitigate this issue, users should avoid opening or editing untrusted text files with Emacs. Exercise caution when handling files from unknown or suspicious sources, as interacting with them can lead to arbitrary code execution."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:84591"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:85245"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:90800"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:98574"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:99160"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/emacs-mirror/emacs/commit/135e6f63f08fee3d374fa1a5187bce941a2d3e3c"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/emacs-mirror/emacs/commit/abc802ee2eb0b1663349ddf22a461f8e54a383fb"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
