Nagios multiple scripts negative Content-Length header buffer overflow

nagios-multiple-scripts-bo (26253) The risk level is classified as HighHigh Risk

Description:

Nagios is vulnerable to a buffer overflow, caused by improper bounds checking by multiple CGI scripts. By sending a specially-crafted HTTP request containing a negative Content-Length header, a remote attacker could overflow a buffer and execute arbitrary code on the system or cause the system to crash.


Consequences:

Gain Access

Remedy:

Upgrade to the latest version of Nagios (1.4 or later) or (2.3 or later), available from the Nagios Web site. See References.

For Debian GNU/Linux:
Refer to DSA-1072-1 for patch, upgrade, or suggested workaround information. See References.

For Gentoo Linux:
Refer to Gentoo Linux Security Announcement GLSA 2006-05-07 for patch, upgrade, or suggested workaround information. See References.

References:

  • Nagios Changelog: Nagios: Changelog.
  • Nagios Web site: Nagios: Home.
  • BID-17879: Nagios Remote Negative Content-Length Buffer Overflow Vulnerability
  • CVE-2006-2162: Buffer overflow in CGI scripts in Nagios 1.x before 1.4 and 2.x before 2.3 allows remote attackers to execute arbitrary code via a negative content length (Content-Length) HTTP header.
  • DSA-1072: nagios -- buffer overflow
  • GLSA-200605-07: Nagios: Buffer overflow
  • SA19991: Nagios Content-Length Handling Buffer Overflow Vulnerability
  • SUSE-SR:2006:011: SUSE Security Summary Report
  • USN-282-1: nagios vulnerability
  • VUPEN/ADV-2006-1662: Nagios CGI Scripts Content-Length Header Remote Buffer Overflow Vulnerability

Platforms Affected:

  • Canonical Ubuntu 5.04
  • Canonical Ubuntu 5.10
  • Debian Debian Linux 3.1
  • Ethan Galstad Nagios prior to 1.4
  • Ethan Galstad Nagios prior to 2.3
  • Gentoo Linux

Reported:

May 03, 2006

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email xforce@iss.net

Return to the main page