CVE-2012-6096

high
Published 2013-01-22 ยท Modified 2026-04-29
CVSS v3
โ€”
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
8.5

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.

Predictions

Exploit likelihood
20%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-24159 remote linux verified
Metasploit ยท 2013-01-16

Nagios3 - 'history.cgi' Host Command Execution (Metasploit)

Source code queued for fetch โ€” refresh in a moment.
EDB-24084 remote multiple verified
blasty ยท 2013-01-13

Nagios3 - 'history.cgi' Remote Command Execution

Source code queued for fetch โ€” refresh in a moment.

Metasploit modules

Nagios3 history.cgi Host Command Execution
Source fetch failed: fetch_error โ€” view the original via the link above.

Application impact

VendorProductVersionsFixed
nagiosnagios{"endIncluding":"3.4.3"}
nagiosnagios3.0
nagiosnagios3.0.1
nagiosnagios3.0.2
nagiosnagios3.0.3
nagiosnagios3.0.4
nagiosnagios3.0.5
nagiosnagios3.0.6
nagiosnagios3.1.0
nagiosnagios3.1.1
nagiosnagios3.1.2
nagiosnagios3.2.0
nagiosnagios3.2.1
nagiosnagios3.2.2
nagiosnagios3.2.3
nagiosnagios3.3.1
nagiosnagios3.4.0
nagiosnagios3.4.1
nagiosnagios3.4.2
icingaicinga1.6.0
icingaicinga1.6.1
icingaicinga1.7.0
icingaicinga1.7.1
icingaicinga1.7.2
icingaicinga1.7.3
icingaicinga1.8.0
icingaicinga1.8.1
icingaicinga1.8.2
icingaicinga1.8.3

References

CWEs

CWE-119

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.