FreeBSD : emacs -- remote code execution vulnerability (c1e5f35e-f93d-11e1-b07f-00235a5f2c9a)

medium Nessus Plugin ID 62023

Synopsis

The remote FreeBSD host is missing one or more security-related updates.

Description

Chong Yidong reports :

Paul Ling has found a security flaw in the file-local variables code in GNU Emacs.

When the Emacs user option `enable-local-variables' is set to `:safe' (the default value is t), Emacs should automatically refuse to evaluate `eval' forms in file-local variable sections. Due to the bug, Emacs instead automatically evaluates such `eval' forms. Thus, if the user changes the value of `enable-local-variables' to `:safe', visiting a malicious file can cause automatic execution of arbitrary Emacs Lisp code with the permissions of the user.

The bug is present in Emacs 23.2, 23.3, 23.4, and 24.1.

Solution

Update the affected packages.

See Also

https://lists.gnu.org/archive/html/emacs-devel/2012-08/msg00802.html

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=12155

http://www.nessus.org/u?74c6d735

Plugin Details

Severity: Medium

ID: 62023

File Name: freebsd_pkg_c1e5f35ef93d11e1b07f00235a5f2c9a.nasl

Version: 1.11

Type: local

Published: 9/10/2012

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.8

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5.9

Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P

Vulnerability Information

CPE: p-cpe:/a:freebsd:freebsd:emacs, cpe:/o:freebsd:freebsd

Required KB Items: Host/local_checks_enabled, Host/FreeBSD/release, Host/FreeBSD/pkg_info

Exploit Ease: No known exploits are available

Patch Publication Date: 9/8/2012

Vulnerability Publication Date: 8/13/2012

Reference Information

CVE: CVE-2012-3479

BID: 54969