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

medium Nessus Plugin ID 27846

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.

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'

See Also

https://security.gentoo.org/glsa/200711-11

Plugin Details

Severity: Medium

ID: 27846

File Name: gentoo_GLSA-200711-11.nasl

Version: 1.15

Type: local

Published: 11/9/2007

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.3

CVSS v2

Risk Factor: Medium

Base Score: 6.8

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

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:nagios-plugins, cpe:/o:gentoo:linux

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

Patch Publication Date: 11/8/2007

Reference Information

CVE: CVE-2007-5198, CVE-2007-5623

CWE: 119

GLSA: 200711-11