Skip to content

Properly mitigate CVE-2024-53920 on Emacs 30+#2160

Open
bbatsov wants to merge 1 commit into
masterfrom
fix-cve-2024-53920
Open

Properly mitigate CVE-2024-53920 on Emacs 30+#2160
bbatsov wants to merge 1 commit into
masterfrom
fix-cve-2024-53920

Conversation

@bbatsov
Copy link
Copy Markdown
Contributor

@bbatsov bbatsov commented Feb 20, 2026

On Emacs 30+, disable the emacs-lisp checker for files not marked as trusted via trusted-content. Byte-compilation triggers macro expansion which can execute arbitrary code, so the previous mitigation (disabling enable-local-eval) was insufficient — it only blocked one attack vector.

Users need to add their project directories to trusted-content for the checker to work on Emacs 30+.

Fixes #2159

On Emacs 30+, disable the emacs-lisp checker for files not marked
as trusted via `trusted-content`.  Byte-compilation triggers macro
expansion which can execute arbitrary code, so the previous
mitigation (disabling `enable-local-eval`) was insufficient.
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Still vulnerable to CVE-2024-53920

2 participants