CVE-2021-25297
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.
Severity
HIGH
CVSS v3
8.8
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
58.114%
chance of exploitation in the next 30 days
higher than 99.1% of scored CVEs · 2026-11-17
CISA KEV
Listed
added 2022-01-18
Public exploit code
Yes
Exploit references (NVD and CNA): 4
Metasploit modules: 1
Nuclei templates: 1
Weakness
- CWE-78: Improper Neutralization of Special Elements used in an OS Command
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | Nagios XI OS Command Injection |
|---|---|
| Vendor / product | Nagios / Nagios XI |
| Date added | 2022-01-18 |
| Federal remediation due date | 2022-02-01 |
| Required action | Apply updates per vendor instructions. |
| Known ransomware campaign use | Unknown |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2025-02-04 |
Timeline
- 2021-02-15Published by the CNA00:00 UTC
- 2022-01-18Added to the CISA KEV catalog337 days after publication
- 2025-02-04CISA SSVC decision recorded1450 days after publication
Exploit and advisory records
Nuclei templates:
- CVE-2021-25297: Nagios 5.5.6-5.7.5 - Authenticated Remote Command Injection
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| nagios nagios_xi | from 5.5.6 through 5.7.5no fix listed | not listed |
References
- http://packetstormsecurity.com/files/161561/Nagios-XI-5.7.5-Remote-Code-Execution.html
- http://packetstormsecurity.com/files/170924/Nagios-XI-5.7.5-Remote-Code-Execution.html
- https://github.com/fs0c-sh/nagios-xi-5.7.5-bugs/blob/main/README.md
- https://www.fastly.com/blog/anatomy-of-a-command-injection-cve-2021-25296-7-8-with-metasploit-module-and
- https://assets.nagios.com/downloads/nagiosxi/versions.php
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-25297
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2021-25297'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2021-25297'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2021-25297'curl 'https://api.contrastcyber.com/cve_products/CVE-2021-25297'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2021-25297'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).