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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 6.0 | icinga | 1.0.2-2+squeeze1 | DSA-2653-1 |
| Debian 6.0 | nagios3 | 3.2.1-2+squeeze1 | DSA-2616-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Nagios3 history.cgi Host Command Execution
exploit/unix/webapp/nagios3_history_cgi
Exploit-DB 2
- Nagios3 - 'history.cgi' Host Command Execution (Metasploit) EDB-24159 · remote · Jan 16, 2013 · verified
- Nagios3 - 'history.cgi' Remote Command Execution EDB-24084 · remote · Jan 13, 2013 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 2
- DSA-2653-1 icinga - buffer overflow Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-2616-1 nagios3 - buffer overflow vulnerability Debian Security (DSA / DLA) · Mar 9, 2026
References
- 20121209 Nagios Core 3.4.3: Stack based buffer overflow in web interface mailing-list
- DSA-2616 vendor-advisory
- openSUSE-SU-2013:0188 vendor-advisory
- 24084 exploit
- openSUSE-SU-2013:0140 vendor-advisory
- 51863 third-party-advisory
- openSUSE-SU-2013:0206 vendor-advisory
- http://www.nagios.org/projects/nagioscore/history/core-3x
- https://bugzilla.redhat.com/show_bug.cgi?id=893269
- 24159 exploit
- 89170 vdb-entry
- https://www.icinga.org/2013/01/14/icinga-1-6-2-1-7-4-1-8-4-released/
- openSUSE-SU-2013:0169 vendor-advisory
- https://dev.icinga.org/issues/3532
- DSA-2653 vendor-advisory
- 56879 vdb-entry