CVE-2012-6096

Nagios Core < 3.4.4 / Icinga 1.6.x < 1.6.2, 1.7.x < 1.7.4, 1.8.x < 1.8.4 - Stack-Based Buffer Overflow

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 3 public exploits for CVE-2012-6096. PoCs published by Metasploit, blasty, including Metasploit module exploits/unix/webapp/nagios3_history_cgi.

AI-analyzed exploit summary This Metasploit module exploits a command injection vulnerability in Nagios3's history.cgi script (CVE-2012-6096) by injecting a malicious payload into the 'host' parameter, leveraging ROP chains for different targets to achieve remote code execution.

Description

Multiple stack-based buffer overflows in the get_history function in history.cgi in Nagios Core before 3.4.4, and Icinga 1.6.x before 1.6.2, 1.7.x before 1.7.4, and 1.8.x before 1.8.4, might allow remote attackers to execute arbitrary code via a long (1) host_name variable (host parameter) or (2) svc_description variable.

Exploits (3)

exploitdb WORKING POC VERIFIED
by Metasploit · rubyremotelinux
https://www.exploit-db.com/exploits/24159

This Metasploit module exploits a command injection vulnerability in Nagios3's history.cgi script (CVE-2012-6096) by injecting a malicious payload into the 'host' parameter, leveraging ROP chains for different targets to achieve remote code execution.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Nagios3 (versions 3.0.6, 3.4.1, and others)
Auth required
Prerequisites: Valid credentials for Nagios3 web interface · Access to the history.cgi endpoint
devstral-2 · analyzed Feb 16, 2026 Full analysis →
exploitdb WORKING POC VERIFIED
by blasty · pythonremotemultiple
https://www.exploit-db.com/exploits/24084

This exploit targets a buffer overflow vulnerability in Nagios history.cgi, allowing remote command execution via a crafted HTTP request. It uses a ROP chain to bypass URL escaping and execute arbitrary commands, including a connect-back shell.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Nagios 3.x (specifically nagios3_3.0.6-4~lenny2_i386.deb)
No auth needed
Prerequisites: Network access to the Nagios CGI interface · Target system must be vulnerable to the buffer overflow
devstral-2 · analyzed Feb 18, 2026 Full analysis →
metasploit WORKING POC GREAT
rubypoc
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/webapp/nagios3_history_cgi.rb

This Metasploit module exploits a command injection vulnerability in Nagios3's history.cgi script (CVE-2012-6096) by injecting a base64-encoded payload into the 'host' parameter, leveraging ROP chains for different targets.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Nagios3 (versions 3.0.6, 3.4.1)
Auth required
Prerequisites: Valid Nagios3 credentials · Access to the history.cgi endpoint
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (16)

Core 16
Core References
Third Party Advisory vendor-advisory x_refsource_debian
http://www.debian.org/security/2013/dsa-2616
Mailing List vendor-advisory x_refsource_suse
http://lists.opensuse.org/opensuse-updates/2013-01/msg00077.html
Exploit exploit x_refsource_exploit-db
http://www.exploit-db.com/exploits/24084
Mailing List vendor-advisory x_refsource_suse
http://lists.opensuse.org/opensuse-updates/2013-01/msg00033.html
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/51863
Mailing List vendor-advisory x_refsource_suse
http://lists.opensuse.org/opensuse-updates/2013-01/msg00088.html
Various Sources x_refsource_confirm
http://www.nagios.org/projects/nagioscore/history/core-3x
Issue Tracking x_refsource_confirm
https://bugzilla.redhat.com/show_bug.cgi?id=893269
Exploit exploit x_refsource_exploit-db
http://www.exploit-db.com/exploits/24159
Third Party Advisory, VDB Entry vdb-entry x_refsource_osvdb
http://www.osvdb.org/89170
Mailing List vendor-advisory x_refsource_suse
http://lists.opensuse.org/opensuse-updates/2013-01/msg00060.html
Vendor Advisory x_refsource_confirm
https://dev.icinga.org/issues/3532
Third Party Advisory vendor-advisory x_refsource_debian
http://www.debian.org/security/2013/dsa-2653
Exploit vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/56879

Scores

EPSS 0.6645
EPSS Percentile 99.2%

Details

CWE
CWE-119
Status published
Products (29)
icinga/icinga 1.6.0
icinga/icinga 1.6.1
icinga/icinga 1.7.0
icinga/icinga 1.7.1
icinga/icinga 1.7.2
icinga/icinga 1.7.3
icinga/icinga 1.8.0
icinga/icinga 1.8.1
icinga/icinga 1.8.2
icinga/icinga 1.8.3
... and 19 more
Published Jan 22, 2013
Tracked Since Feb 18, 2026