Skip to content
Fencer Vulns
medium 6.3

CVE-2007-5795 json

The hack-local-variables function in Emacs before 22.2, when enable-local-variables is set to :safe, does not properly search lists of unsa…

published 2007-11-02 19 y ago modified 2026-06-16 4 mo ago also EUVD-2007-5765

cvss
6.3
version 2.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.7%
EPSS 0.7% chance of exploitation in 30 days, percentile 54%
public exploits
1
Exploit-DB

Summary

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.

Patch / fix

  • emacs openSUSE Tumbleweed 27.2-6.2

opensuse advisories openSUSE-SU-2024:10735-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2007-5795 updated

emacs insufficient safe mode checks

  • Red Hat All currently supported Red Hat products
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Timeline

  1. First public exploit (EDB-30736)
  2. Published

Exploit prediction

0.72% chance of exploitation in the next 30 days, higher than 54% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • EDB-30736 GNU Emacs 22.1 - Local Variable Handling Code Execution remote, 2007-11-02

CVSS scores

assigned by version score vector
NVD 2.0 6.3 AV:L/AC:M/Au:N/C:N/I:C/A:C

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.