CVE-2007-5795: Medium severity GNU Emacs vulnerability

Published Nov 2, 2007
·
Updated

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.

Affected Software

2 affected components
GNU Emacs<=22.1
Debian Debian Linux

Event History

Nov 2, 2007
CVE Published
via MITRE·10:00 PM
Data Sourced
via MITRE·10:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2007-5795?

CVE-2007-5795 is considered a moderate severity vulnerability due to its potential to allow user-assisted attackers to modify critical program variables.

2

How do I fix CVE-2007-5795?

To fix CVE-2007-5795, upgrade Emacs to version 22.2 or later, where the vulnerability has been addressed.

3

What versions of Emacs are affected by CVE-2007-5795?

CVE-2007-5795 affects Emacs versions prior to 22.2.

4

What does CVE-2007-5795 allow an attacker to do?

CVE-2007-5795 allows user-assisted attackers to bypass intended restrictions on local variables in Emacs.

5

Is Debian Linux vulnerable to CVE-2007-5795?

Debian Linux is not vulnerable to CVE-2007-5795 as the vulnerability specifically pertains to certain versions of Emacs.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203