Description
Nagios Core before 4.5.12 contains a cross-site request forgery vulnerability in cmd.cgi where the CSRF protection mechanism passes validation when the NagFormId cookie is absent. Attackers can craft a malicious cross-site POST request to execute arbitrary Nagios commands as a currently authenticated user without their knowledge or consent.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Nagios Enterprises, LLC. | Nagios Core | < 4.5.12 | 4.5.12 |
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 14 | nagios4 | 4.5.12+ds-1 | — |
| Debian 13 | nagios4 | 4.4.6-4.1+deb13u1 | — |
| Debian 12 | nagios4 | 4.4.6-4+deb12u1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | nagios4 | No fix yet | — |
| Ubuntu 26.04 LTS | nagios4 | No fix yet | — |
| Ubuntu 24.04 LTS | nagios4 | No fix yet | — |
| Ubuntu 22.04 LTS | nagios4 | No fix yet | — |
| Ubuntu 20.04 LTS | nagios4 | No fix yet | — |
References
- Security Disclosures vendor-advisory patch
- Changelog release-notes
- https://www.vulncheck.com/advisories/nagios-core-csrf-via-cmd-cgi third-party-advisory