Emacs: emacs: arbitrary code execution in flymake mode
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.
- Products
- GNU Emacs, Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-96442
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 16:31 UTC · Revision 2
Source evidence
Emacs: emacs: arbitrary code execution in flymake mode
core-cve · Original sourcePublished 23 Sept 2026, 10:10 UTC
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.
cve:CVE-2026-96442
GNU Emacs
Fixed versions: Not specified
Red Hat Enterprise Linux 10
Fixed versions: Not specified
Red Hat Enterprise Linux 8
Fixed versions: Not specified
Red Hat Enterprise Linux 8
Fixed versions: Not specified
Red Hat Enterprise Linux 9
Fixed versions: Not specified
Red Hat Enterprise Linux 6
Fixed versions: Not specified
Red Hat Enterprise Linux 7
Fixed versions: Not specified
Complete source record
{
"id": "85583dd719c8befc9d8e07ed767ac020df3ba25667651445c6ef437cc0f70891",
"url": "https://www.cve.org/CVERecord?id=CVE-2026-96442",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Emacs: emacs: arbitrary code execution in flymake mode",
"summary": "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.",
"evidence": "cve:CVE-2026-96442",
"products": [
{
"name": {
"value": "GNU Emacs",
"evidence": "/containers/cna/affected/0/product"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": []
},
{
"name": {
"value": "Red Hat Enterprise Linux 10",
"evidence": "/containers/cna/affected/1/product"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": []
},
{
"name": {
"value": "Red Hat Enterprise Linux 8",
"evidence": "/containers/cna/affected/2/product"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": []
},
{
"name": {
"value": "Red Hat Enterprise Linux 8",
"evidence": "/containers/cna/affected/3/product"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": []
},
{
"name": {
"value": "Red Hat Enterprise Linux 9",
"evidence": "/containers/cna/affected/4/product"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": []
},
{
"name": {
"value": "Red Hat Enterprise Linux 6",
"evidence": "/containers/cna/affected/5/product"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": []
},
{
"name": {
"value": "Red Hat Enterprise Linux 7",
"evidence": "/containers/cna/affected/6/product"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2026-96442",
"aliases": [
"CVE-2026-96442"
],
"metrics": [
{
"other": {
"type": "Red Hat severity rating",
"content": {
"value": "Important",
"namespace": "https://access.redhat.com/security/updates/classification/"
}
}
},
{
"format": "CVSS",
"cvssV3_1": {
"scope": "UNCHANGED",
"version": "3.1",
"baseScore": 7.8,
"attackVector": "LOCAL",
"baseSeverity": "HIGH",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
"integrityImpact": "HIGH",
"userInteraction": "REQUIRED",
"attackComplexity": "LOW",
"availabilityImpact": "HIGH",
"privilegesRequired": "NONE",
"confidentialityImpact": "HIGH"
}
}
],
"affected": [
{
"vendor": "GNU Emacs",
"product": "GNU Emacs",
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "31.2",
"versionType": "semver"
}
],
"packageName": "emacs",
"collectionURL": "https://git.savannah.gnu.org/cgit/emacs.git/",
"defaultStatus": "unaffected"
},
{
"cpes": [
"cpe:/o:redhat:enterprise_linux:10.2"
],
"vendor": "Red Hat",
"product": "Red Hat Enterprise Linux 10",
"versions": [
{
"status": "unaffected",
"version": "1:29.4-14.el10_2.3",
"lessThan": "*",
"versionType": "rpm"
}
],
"packageName": "emacs",
"collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
"defaultStatus": "affected"
},
{
"cpes": [
"cpe:/a:redhat:enterprise_linux:8::appstream",
"cpe:/o:redhat:enterprise_linux:8::baseos"
],
"vendor": "Red Hat",
"product": "Red Hat Enterprise Linux 8",
"versions": [
{
"status": "unaffected",
"version": "1:26.1-15.el8_10.4",
"lessThan": "*",
"versionType": "rpm"
}
],
"packageName": "emacs",
"collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
"defaultStatus": "affected"
},
{
"cpes": [
"cpe:/a:redhat:enterprise_linux:8::appstream",
"cpe:/o:redhat:enterprise_linux:8::baseos"
],
"vendor": "Red Hat",
"product": "Red Hat Enterprise Linux 8",
"versions": [
{
"status": "unaffected",
"version": "1:26.1-15.el8_10.4",
"lessThan": "*",
"versionType": "rpm"
}
],
"packageName": "emacs",
"collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
"defaultStatus": "affected"
},
{
"cpes": [
"cpe:/a:redhat:enterprise_linux:9::appstream"
],
"vendor": "Red Hat",
"product": "Red Hat Enterprise Linux 9",
"versions": [
{
"status": "unaffected",
"version": "1:27.2-18.el9_8.3",
"lessThan": "*",
"versionType": "rpm"
}
],
"packageName": "emacs",
"collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
"defaultStatus": "affected"
},
{
"cpes": [
"cpe:/o:redhat:enterprise_linux:6"
],
"vendor": "Red Hat",
"product": "Red Hat Enterprise Linux 6",
"packageName": "emacs",
"collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
"defaultStatus": "unknown"
},
{
"cpes": [
"cpe:/o:redhat:enterprise_linux:7"
],
"vendor": "Red Hat",
"product": "Red Hat Enterprise Linux 7",
"packageName": "emacs",
"collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
"defaultStatus": "affected"
}
],
"modified": "2026-10-27T21:52:56.000Z",
"provider": "cve",
"references": [
"https://access.redhat.com/errata/RHSA-2026:84591",
"https://access.redhat.com/errata/RHSA-2026:85245",
"https://access.redhat.com/errata/RHSA-2026:90800",
"https://access.redhat.com/security/cve/CVE-2026-96442",
"https://bugzilla.redhat.com/show_bug.cgi?id=2537347",
"https://github.com/emacs-mirror/emacs/commit/135e6f63f08fee3d374fa1a5187bce941a2d3e3c",
"https://github.com/emacs-mirror/emacs/commit/abc802ee2eb0b1663349ddf22a461f8e54a383fb",
"https://www.openwall.com/lists/oss-security/2026/09/14/1"
],
"provider_metadata": {
"adp": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2026-96442",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "total"
}
],
"version": "2.0.3",
"timestamp": "2026-09-23T13:54:08.909184Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-09-23T13:55:23.266Z"
}
}
],
"cna": {
"orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
"shortName": "redhat",
"dateUpdated": "2026-10-27T21:52:56.000Z"
}
}
},
"related_cves": [
{
"value": "CVE-2026-96442",
"evidence": "/cveMetadata/cveId"
}
],
"security_relevant": true,
"severity_evidence": "/containers/cna/metrics"
},
"source_id": "core-cve",
"document_id": 400616,
"published_at": "2026-09-23T10:10:36.734+00:00"
}