Bug 2575692 (CVE-2026-131959) - CVE-2026-131959 emacs: Emacs: Arbitrary code execution via crafted directory-local configuration
Summary: CVE-2026-131959 emacs: Emacs: Arbitrary code execution via crafted directory-...
Keywords:
Status: NEW
Alias: CVE-2026-131959
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-18 07:41 UTC by OSIDB Bzimport
Modified: 2026-11-18 07:48 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-11-18 07:41:27 UTC
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.)


Note You need to log in before you can comment on or make changes to this bug.