CVE-2007-5795
Emacs < 22.1 - Unauthenticated Variable Manipulation via Local Variables Declaration
Title source: llmExploitation Summary
EIP tracks 1 public exploit for CVE-2007-5795. PoCs published by Drake Wilson.
AI-analyzed exploit summary This exploit leverages a design error in Emacs 22.1 where local variables are improperly handled, allowing arbitrary code execution via a malicious file. The PoC demonstrates how a specially crafted file can modify the user's init file when loaded with 'enable-local-variables' set to :safe.
Description
The hack-local-variables function in Emacs before 22.2, when enable-local-variables is set to :safe, does not properly search lists of unsafe or risky variables, which might allow user-assisted attackers to bypass intended restrictions and modify critical program variables via a file containing a Local variables declaration.
Exploits (1)
This exploit leverages a design error in Emacs 22.1 where local variables are improperly handled, allowing arbitrary code execution via a malicious file. The PoC demonstrates how a specially crafted file can modify the user's init file when loaded with 'enable-local-variables' set to :safe.