CWE
NVD-CWE-Other
Advisory Published
Updated

CVE-2007-5795

First published: Fri Nov 02 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.

Credit: secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
Debian
Emacs<=22.1
GNU Emacs<=22.1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • 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.

  • 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.

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

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

  • 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.

  • 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203