Nagios 'statuswml.cgi' Remote Arbitrary Shell Command Injection Vulnerability

BID:35464

Info

Nagios 'statuswml.cgi' Remote Arbitrary Shell Command Injection Vulnerability

Bugtraq ID: 35464
Class: Input Validation Error
CVE: CVE-2009-2288
Remote: Yes
Local: No
Published: Jun 22 2009 12:00AM
Updated: Apr 13 2015 08:43PM
Credit: Paul
Vulnerable: Ubuntu Ubuntu Linux 9.04 sparc
Ubuntu Ubuntu Linux 9.04 powerpc
Ubuntu Ubuntu Linux 9.04 lpia
Ubuntu Ubuntu Linux 9.04 i386
Ubuntu Ubuntu Linux 9.04 amd64
Ubuntu Ubuntu Linux 8.10 sparc
Ubuntu Ubuntu Linux 8.10 powerpc
Ubuntu Ubuntu Linux 8.10 lpia
Ubuntu Ubuntu Linux 8.10 i386
Ubuntu Ubuntu Linux 8.10 amd64
Ubuntu Ubuntu Linux 8.04 LTS sparc
Ubuntu Ubuntu Linux 8.04 LTS powerpc
Ubuntu Ubuntu Linux 8.04 LTS lpia
Ubuntu Ubuntu Linux 8.04 LTS i386
Ubuntu Ubuntu Linux 8.04 LTS amd64
SuSE SUSE Linux Enterprise 11
SuSE SUSE Linux Enterprise 10
SuSE openSUSE 10.3
S.u.S.E. openSUSE 11.1
S.u.S.E. openSUSE 11.0
RedHat HPC Solution EL5 5
Nagios Nagios 3.0.6
Nagios Nagios 3.0.5
Nagios Nagios 3.0.4
Nagios Nagios 2.9
Nagios Nagios 2.8
Nagios Nagios 2.7
Nagios Nagios 2.12
Nagios Nagios 2.11
Nagios Nagios 2.10
MandrakeSoft Enterprise Server 5 x86_64
MandrakeSoft Enterprise Server 5
MandrakeSoft Corporate Server 4.0 x86_64
MandrakeSoft Corporate Server 4.0
HP Insight Control for Linux (ICE-LX) 2.10
HP Insight Control 6.0
Gentoo Linux
Debian Linux 5.0 sparc
Debian Linux 5.0 s/390
Debian Linux 5.0 powerpc
Debian Linux 5.0 mipsel
Debian Linux 5.0 mips
Debian Linux 5.0 m68k
Debian Linux 5.0 ia-64
Debian Linux 5.0 ia-32
Debian Linux 5.0 hppa
Debian Linux 5.0 armel
Debian Linux 5.0 arm
Debian Linux 5.0 amd64
Debian Linux 5.0 alpha
Debian Linux 5.0
Not Vulnerable: Nagios Nagios 3.1.1

Discussion

Nagios 'statuswml.cgi' Remote Arbitrary Shell Command Injection Vulnerability

Nagios is prone to a remote command-injection vulnerability because it fails to adequately sanitize user-supplied input data.

Remote attackers can exploit this issue to execute arbitrary shell commands with the privileges of the user running the application.

NOTE: For an exploit to succeed, access to the WAP interface's ping feature must be allowed.

Versions prior to Nagios 3.1.1 are vulnerable.

Exploit / POC

Nagios 'statuswml.cgi' Remote Arbitrary Shell Command Injection Vulnerability

An attacker can exploit the issue via a browser.

The following example URI is available:

https://www.example.com/nagios/cgi-bin/statuswml.cgi?ping=173.45.235.65%3Becho+%24PATH

The following commercial exploit is available for Immunity CANVAS:

https://www.immunityinc.com/downloads/immpartners/nagios_ping.tar.gz

Core Security Technologies has developed a working commercial exploit for its CORE IMPACT product. This exploit is not otherwise publicly available or known to be circulating in the wild.

Solution / Fix

Nagios 'statuswml.cgi' Remote Arbitrary Shell Command Injection Vulnerability

Solution:
Updates are available. Please see the references for details.


Debian Linux 5.0 ia-64

Ubuntu Ubuntu Linux 8.04 LTS powerpc

Ubuntu Ubuntu Linux 8.10 powerpc

Ubuntu Ubuntu Linux 8.04 LTS sparc

Ubuntu Ubuntu Linux 8.10 i386

MandrakeSoft Enterprise Server 5 x86_64

Debian Linux 5.0 alpha

Debian Linux 5.0 ia-32

Ubuntu Ubuntu Linux 8.04 LTS amd64

MandrakeSoft Enterprise Server 5

Debian Linux 5.0 s/390

Debian Linux 5.0 mipsel

Ubuntu Ubuntu Linux 9.04 sparc

Ubuntu Ubuntu Linux 9.04 powerpc

Ubuntu Ubuntu Linux 8.04 LTS lpia

Ubuntu Ubuntu Linux 8.10 lpia

Debian Linux 5.0 hppa

Ubuntu Ubuntu Linux 9.04 i386

Debian Linux 5.0 m68k

Ubuntu Ubuntu Linux 8.10 sparc

Ubuntu Ubuntu Linux 9.04 lpia

Debian Linux 5.0 arm

Debian Linux 5.0 armel

Debian Linux 5.0

MandrakeSoft Corporate Server 4.0

Nagios Nagios 2.12

Nagios Nagios 2.11

Nagios Nagios 2.8

Ubuntu Ubuntu Linux 8.04 LTS i386

Debian Linux 5.0 amd64

Nagios Nagios 2.10

Debian Linux 5.0 mips

Ubuntu Ubuntu Linux 9.04 amd64

Nagios Nagios 2.9

Debian Linux 5.0 powerpc

Ubuntu Ubuntu Linux 8.10 amd64

Debian Linux 5.0 sparc

Nagios Nagios 2.7

Nagios Nagios 3.0.4

Nagios Nagios 3.0.5

Nagios Nagios 3.0.6

MandrakeSoft Corporate Server 4.0 x86_64

References

Nagios 'statuswml.cgi' Remote Arbitrary Shell Command Injection Vulnerability

References:

© CVE.report 2026

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. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report