GLSA-200711-11 : Nagios Plugins: Two buffer overflows

This script is Copyright (C) 2007-2014 Tenable Network Security, Inc.


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-200711-11
(Nagios Plugins: Two buffer overflows)

fabiodds reported a boundary checking error in the 'check_snmp' plugin
when processing SNMP 'GET' replies that could lead to a stack-based
buffer overflow (CVE-2007-5623). Nobuhiro Ban reported a boundary
checking error in the redir() function of the 'check_http' plugin when
processing HTTP 'Location:' header information which might lead to a
buffer overflow (CVE-2007-5198).

Impact :

A remote attacker could exploit these vulnerabilities to execute
arbitrary code with the privileges of the user running Nagios or cause
a Denial of Service by (1) sending a specially crafted SNMP 'GET' reply
to the Nagios daemon or (2) sending an overly long string in the
'Location:' header of an HTTP reply. Note that to exploit (2), the
malicious or compromised web server has to be configured in Nagios and
the '-f' (follow) option has to be enabled.

Workaround :

There is no known workaround at this time.

See also :

http://www.gentoo.org/security/en/glsa/glsa-200711-11.xml

Solution :

All users of the Nagios Plugins should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose '>=net-analyzer/nagios-plugins-1.4.10-r1'

Risk factor :

Medium / CVSS Base Score : 6.8
(CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P)

Family: Gentoo Local Security Checks

Nessus Plugin ID: 27846 (gentoo_GLSA-200711-11.nasl)

Bugtraq ID:

CVE ID: CVE-2007-5198
CVE-2007-5623