<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/emacs-arbitrary-code-execution-flaw-ssl459xbz" -->

---
title: Emacs arbitrary code execution flaw | daily.dev
description: The original fix for CVE-2024-53920, an arbitrary code execution vulnerability in Emacs, has been found incomplete. Bas Alberts discovered that viewing or...
canonical: https://daily.dev/posts/emacs-arbitrary-code-execution-flaw-ssl459xbz
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Emacs arbitrary code execution flaw | daily.dev
og:description: The original fix for CVE-2024-53920, an arbitrary code execution vulnerability in Emacs, has been found incomplete. Bas Alberts discovered that viewing or...
og:url: https://daily.dev/posts/emacs-arbitrary-code-execution-flaw-ssl459xbz
og:image: https://api.daily.dev/og/posts/sSL459xBz.png
og:image:alt: Emacs arbitrary code execution flaw
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Emacs arbitrary code execution flaw

**[LWN.net](https://daily.dev/sources/lwn)** · 1 min read · 0 upvotes · 0 comments

## Summary

The original fix for CVE-2024-53920, an arbitrary code execution vulnerability in Emacs, has been found incomplete. Bas Alberts discovered that viewing or editing untrusted files in modes other than Lisp mode can still trigger arbitrary code execution. The flaw affects Emacs 24 and newer, and possibly older versions too. A minimal fix is queued for Emacs 31.2, but upstream maintainers do not plan to backport it to older releases themselves.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://lwn.net/Articles/1094224>

## Questions this post answers

### Is the fix for CVE-2024-53920 in Emacs actually complete?

No, the original fix for CVE-2024-53920 was incomplete. Bas Alberts discovered that viewing or editing untrusted files in modes other than Lisp mode can still result in arbitrary code execution. The flaw affects Emacs 24 and newer, and possibly older versions. A minimal fix is queued for release with Emacs 31.2, but upstream maintainers do not plan to backport it themselves.

_Track emacs security fixes like this one on daily.dev before opening another untrusted file._

### Which Emacs versions are affected by the arbitrary code execution flaw beyond Lisp mode?

All Emacs versions affected by CVE-2024-53920 are also affected by this broader issue, meaning Emacs 24 and newer, and possibly older versions too. Unlike the original CVE, this variant can be triggered by viewing or editing untrusted files in modes other than Emacs's Lisp mode.

_Developers pinning emacs versions can follow security advisories like this via daily.dev._

## Similar posts on daily.dev

- [Vim and GNU Emacs: Claude Code helpfully found zero-day exploits for both](https://daily.dev/posts/vim-and-gnu-emacs-claude-code-helpfully-found-zero-day-exploits-for-both-zduubrik1) · InfoWorld · 1 upvotes · 0 comments
- [MAD Bugs: vim vs emacs vs Claude](https://daily.dev/posts/mad-bugs-vim-vs-emacs-vs-claude-2tkeiuc18) · Lobsters · 1 upvotes · 0 comments
- [Towards Trust in Emacs](https://daily.dev/posts/towards-trust-in-emacs-kbu6n0ygg) · Hacker News · 0 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security)

[View this post on daily.dev](https://daily.dev/posts/emacs-arbitrary-code-execution-flaw-ssl459xbz)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Emacs arbitrary code execution flaw","url":"https://daily.dev/posts/emacs-arbitrary-code-execution-flaw-ssl459xbz","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/emacs-arbitrary-code-execution-flaw-ssl459xbz"},"datePublished":"2026-09-14T15:23:19.164Z","dateModified":"2026-09-14T15:23:38.280Z","description":"The original fix for CVE-2024-53920, an arbitrary code execution vulnerability in Emacs, has been found incomplete. Bas Alberts discovered that viewing or...","image":"https://media.daily.dev/image/upload/s--0_ODbtD2--/f_auto/v1722860399/public/Placeholder%2008","thumbnailUrl":"https://media.daily.dev/image/upload/s--0_ODbtD2--/f_auto/v1722860399/public/Placeholder%2008","isAccessibleForFree":true,"articleSection":"LWN.net","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"LWN.net","logo":"https://media.daily.dev/image/upload/s--4jjE7GIK--/f_auto,q_auto/v1774960833/logos/lwn?_a=BAMAMiWQ0","url":"https://daily.dev/sources/lwn"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/emacs-arbitrary-code-execution-flaw-ssl459xbz","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"LWN.net","item":"https://daily.dev/sources/lwn"},{"@type":"ListItem","position":3,"name":"Emacs arbitrary code execution flaw"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/emacs-arbitrary-code-execution-flaw-ssl459xbz#faq","mainEntity":[{"@type":"Question","name":"Is the fix for CVE-2024-53920 in Emacs actually complete?","acceptedAnswer":{"@type":"Answer","text":"No, the original fix for CVE-2024-53920 was incomplete. Bas Alberts discovered that viewing or editing untrusted files in modes other than Lisp mode can still result in arbitrary code execution. The flaw affects Emacs 24 and newer, and possibly older versions. A minimal fix is queued for release with Emacs 31.2, but upstream maintainers do not plan to backport it themselves. Track emacs security fixes like this one on daily.dev before opening another untrusted file."}},{"@type":"Question","name":"Which Emacs versions are affected by the arbitrary code execution flaw beyond Lisp mode?","acceptedAnswer":{"@type":"Answer","text":"All Emacs versions affected by CVE-2024-53920 are also affected by this broader issue, meaning Emacs 24 and newer, and possibly older versions too. Unlike the original CVE, this variant can be triggered by viewing or editing untrusted files in modes other than Emacs's Lisp mode. Developers pinning emacs versions can follow security advisories like this via daily.dev."}}]}
```

