GLSA-200712-03 : GNU Emacs: Multiple vulnerabilities

critical Nessus Plugin ID 29290

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-200712-03 (GNU Emacs: Multiple vulnerabilities)

Drake Wilson reported that the hack-local-variables() function in GNU Emacs 22 does not properly match assignments of local variables in a file against a list of unsafe or risky variables, allowing to override them (CVE-2007-5795). Andreas Schwab (SUSE) discovered a stack-based buffer overflow in the format function when handling values with high precision (CVE-2007-6109).
Impact :

Remote attackers could entice a user to open a specially crafted file in GNU Emacs, possibly leading to the execution of arbitrary Emacs Lisp code (via CVE-2007-5795) or arbitrary code (via CVE-2007-6109) with the privileges of the user running GNU Emacs.
Workaround :

The first vulnerability can be worked around by setting the 'enable-local-variables' option to 'nil', disabling the processing of local variable lists. GNU Emacs prior to version 22 is not affected by this vulnerability. There is no known workaround for the second vulnerability at this time.

Solution

All GNU Emacs users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=app-editors/emacs-22.1-r3'

See Also

https://security.gentoo.org/glsa/200712-03

Plugin Details

Severity: Critical

ID: 29290

File Name: gentoo_GLSA-200712-03.nasl

Version: 1.15

Type: local

Published: 12/11/2007

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: Critical

Base Score: 10

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

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:emacs, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 12/9/2007

Reference Information

CVE: CVE-2007-5795, CVE-2007-6109

CWE: 119

GLSA: 200712-03