CVE-2007-5795
Reported by redhat · Published November 2, 2007
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| emacs | gnu | 22.1 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| gnu | emacs |
Timeline
- Nov 2, 2007 CVE Published
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- Apr 23, 2026 CVE Updated
- Jun 1, 2026 Security Advisory (2 in total, the first dated here)
- Aug 8, 2026 Distribution Patch
- Nov 9, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2007-5795
vulnetix vdb fixes CVE-2007-5795
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2007-5795/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2007-3056 vendor-advisoryx_refsource_FEDORA
- x_refsource_CONFIRM
- 27984 third-party-advisoryx_refsource_SECUNIA
- emacs-hacklocalvariables-security-bypass(38263) vdb-entryx_refsource_XF
- 27728 third-party-advisoryx_refsource_SECUNIA
- ADV-2008-0924 vdb-entryx_refsource_VUPEN
- ADV-2007-3715 vdb-entryx_refsource_VUPEN
- x_refsource_CONFIRM
- 42060 vdb-entryx_refsource_OSVDB
- USN-541-1 vendor-advisoryx_refsource_UBUNTU
- 29420 third-party-advisoryx_refsource_SECUNIA
- APPLE-SA-2008-03-18 vendor-advisoryx_refsource_APPLE
- MDVSA-2008:034 vendor-advisoryx_refsource_MANDRIVA
- 26327 vdb-entryx_refsource_BID
- x_refsource_CONFIRM
- GLSA-200712-03 vendor-advisoryx_refsource_GENTOO
- x_refsource_CONFIRM
- 27508 third-party-advisoryx_refsource_SECUNIA
- 27627 third-party-advisoryx_refsource_SECUNIA