---
title: "CVE-2007-5795\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2007-5795?format=md
keywords: index, follow
---

# CVE-2007-5795

Publication date 2 November 2007

Last updated 24 July 2024

---

Ubuntu priority

**Low**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

Toggle side navigation

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

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| emacs21 | 7.10 gutsy | Not affected |
| 7.04 feisty | Not affected |
| 6.10 edgy | Not affected |
| 6.06 LTS dapper | Not affected |
| emacs22 | 7.10 gutsy | Fixed 22.1-0ubuntu5.1 |
| 7.04 feisty | Not in release |
| 6.10 edgy | Not in release |
| 6.06 LTS dapper | Not in release |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-5795)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2007-5795)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2007-5795)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2007-5795)

### Related Ubuntu Security Notices (USN)

+ [USN-541-1](https://usn.ubuntu.com/USN-541-1)
+ Emacs vulnerability
+ 13 November 2007

### Other references

* <https://www.cve.org/CVERecord?id=CVE-2007-5795>
