CVE-2026-131959
HIGH 7.8 UPDATED SOURCE DATASource catalogue and publisher evidence; linked resources have not been executed or independently validated by Vulnpedia.
GNU Emacs 31.1 contains a code injection vulnerability in its handling of directory-local variables. A crafted .dir-locals.el can supply a (REGEXP FUNCTION t) entry in auto-mode-alist; when a matching file is opened, Emacs calls FUNCTION before set-auto-mode--dir-local-valid-p validates it, executing arbitrary Emacs Lisp with the privileges of the Emacs process. (Emacs 30.2 is unaffected.)
Severe if exploited (CVSS 7.8); current sources show no confirmed exploitation. Consider exposure and affected versions when prioritizing remediation.
Exploitation likelihood
—EPSS not scored
Impact if exploited
7.8CVSS 3.1 · HIGH · CNA
- ConfidentialityHigh
- IntegrityHigh
- AvailabilityHigh
What an attacker needs
- ⚠Access: Requires local access to the host
- ✓Privileges: No account or privileges required
- ⚠User interaction: A user must take an action (click / open a file)
- ✓Complexity: No special conditions — reliably repeatable
✓ lowers the bar for an attacker · ⚠ raises it
Proof of concept
No public PoC is currently catalogued.
Search for new PoCs
Search GitHub now — results may be empty or unverified.
Supported CVE and PoC feeds are scheduled every 30 minutes, including for older CVEs. Other enrichment runs daily or weekly; source availability can delay updates. A later release appears after a tracked source lists it and a refresh succeeds.
Data snapshot:
Weakness (CWE)
- CWE-829: Inclusion of Functionality from Untrusted Control Sphere
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References and research data (JSON) · Change history
All CVSS metrics
- HIGH 7.8 v3.1 · CNA Primary
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - HIGH 7.8 v3.1 · NVD Secondary
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
Advisories
- https://x3r0day.github.io/ CVE record · mitre · Updated 2026-11-18T07:34:30.502Z
NVD · CVE-2026-131959 · Updated 2026-11-18T16:18:15.343
Technical & other
- https://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?id=205ae0b0583dbfe09e258164adbc49e130645221CVE record · mitre · Updated 2026-11-18T07:34:30.502Z
NVD · CVE-2026-131959 · Updated 2026-11-18T16:18:15.343 - https://debbugs.gnu.org/82213CVE record · mitre · Updated 2026-11-18T07:34:30.502Z
NVD · CVE-2026-131959 · Updated 2026-11-18T16:18:15.343 - https://www.openwall.com/lists/oss-security/2026/11/11/7CVE record · mitre · Updated 2026-11-18T07:34:30.502Z
NVD · CVE-2026-131959 · Updated 2026-11-18T16:18:15.343
Sources: NVD · CVE.org · All sources and attribution · EPSS