Every CVE Search/ Get API key

CVE-2007-5795

The hack-local-variables function in Emacs before 22.2, when enable-local-variables is set to ...

6.3 MediumPublic exploitFix available

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.

Exploit likelihood

0.72%Down 4.0 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 6.3

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.

Record
CVE-2007-5795
CVSS 2.0
6.3 MediumAV:L/AC:M/Au:N/C:N/I:C/A:C
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2007-5795
Updated
2026-11-02
EUVDEUVD-2007-5765 No score

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.

Record
EUVD-2007-5765
Updated
2026-11-03
GitHub AdvisoriesGHSA-qf2q-r4v7-rv34 No score

The hack-local-variables function in Emacs before 22.2, when enable-local-variables is set to ...

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.

Record
GHSA-qf2q-r4v7-rv34
Updated
2026-11-02
OSVopenSUSE-SU-2024:10735-1 No score

emacs-27.2-6.2 on GA media

These are all security issues fixed in the emacs-27.2-6.2 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10735-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
emacs22
Debian:5.0
before 22.1+1-2+lenny1
22.1+1-2+lenny1
emacs
openSUSE:Tumbleweed
From an advisory covering 2 CVEs
before 27.2-6.2
27.2-6.2

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
Exploit-DBGNU Emacs 22.1 - Local Variable Handling Code Execution2007-11-02

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
affected, aliases, exploits, facts, references, titleExploit-DB, GitHub Advisories, OSV
first indexedCVE List, NVD

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2007-5795 is a medium vulnerability (CVSS 6.3) in Gnu Emacs, published November 2, 2007. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 0.72%, the 54th percentile. Fixed in emacs22 22.1+1-2+lenny1.

References

Show 17 moreShow less
MoveEnter Open