CVE-2021-25297
Nagios XI OS Command Injection
Does this matter?
Known to be exploited in the wild (CISA KEV, CISA remediation deadline 1 February 2022). Treat as an emergency change: patch or isolate now, then hunt for prior compromise.
Description
Nagios XI version xi-5.7.5 is affected by OS command injection. The vulnerability exists in the file /usr/local/nagiosxi/html/includes/configwizards/switch/switch.inc.php due to improper sanitization of authenticated user-controlled input by a single HTTP request, which can lead to OS command injection on the Nagios XI server.
- CVSS 3.1
- 8.8 HIGHCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 56.66% probability · 99th percentile
- Public exploits
- None in Exploit-DB
- CISA KEV
- Listed 18 January 2022 · due 1 February 2022
- Weakness
- CWE-78
- Affected
- nagios/nagios xi
- Source
- cve@mitre.org
EPSS 56.7% since 30 October 2026; no change recorded yet. The dashed line is the ten per cent mark our analysts treat as “patch before the next change window”. Points are recorded when the score first appears and whenever it moves by a percentage point or more.
CISA notes
Apply updates per vendor instructions. https://nvd.nist.gov/vuln/detail/CVE-2021-25297
References
- http://packetstormsecurity.com/files/161561/Nagios-XI-5.7.5-Remote-Code-Execution.htmlExploit, Third Party Advisory, VDB Entry
- http://packetstormsecurity.com/files/170924/Nagios-XI-5.7.5-Remote-Code-Execution.htmlExploit, Third Party Advisory, VDB Entry
- https://assets.nagios.com/downloads/nagiosxi/versions.phpProduct
- https://github.com/fs0c-sh/nagios-xi-5.7.5-bugs/blob/main/README.mdExploit, Third Party Advisory
- https://www.fastly.com/blog/anatomy-of-a-command-injection-cve-2021-25296-7-8-with-metasploit-module-andExploit, Third Party Advisory
- http://packetstormsecurity.com/files/161561/Nagios-XI-5.7.5-Remote-Code-Execution.htmlExploit, Third Party Advisory, VDB Entry
- http://packetstormsecurity.com/files/170924/Nagios-XI-5.7.5-Remote-Code-Execution.htmlExploit, Third Party Advisory, VDB Entry
- https://assets.nagios.com/downloads/nagiosxi/versions.phpProduct
- https://github.com/fs0c-sh/nagios-xi-5.7.5-bugs/blob/main/README.mdExploit, Third Party Advisory
- https://www.fastly.com/blog/anatomy-of-a-command-injection-cve-2021-25296-7-8-with-metasploit-module-andExploit, Third Party Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-25297US Government Resource
Source: NVD record, EPSS from FIRST.org, KEV from CISA, exploits from Exploit-DB. Refreshed daily. Download this record as JSON.