{"schemaVersion":3,"id":"CVE-2021-25297","aliases":[],"status":"published","duplicateOf":null,"title":"Nagios XI OS Command Injection","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.","dates":{"published":"2021-02-15T00:00:00.000Z","modified":"2026-07-09T00:12:25.674Z","reserved":null,"kevAdded":["2022-01-18T00:00:00.000Z"],"kevDue":["2022-02-01T00:00:00.000Z"]},"cvss":{"headline":{"score":9,"severity":"high","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:L/Au:S/C:C/I:C/A:C","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":9,"severity":"high","vector":"AV:N/AC:L/Au:S/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.56659,"percentile":0.99064,"severity":"critical","asOf":"2026-10-22T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-22T00:00:00.000Z","baselineScore":0.56659},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.56659,"percentile":0.99064}],"last30":[{"date":"2026-09-22T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.56659,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.56659,"percentile":0.99064}]},"kev":{"state":"listed","entries":[{"source":"cisa","sourceLabel":"CISA","dateAdded":"2022-01-18T00:00:00.000Z","dueDate":"2022-02-01T00:00:00.000Z","requiredAction":"Apply updates per vendor instructions.","name":"Nagios XI OS Command Injection","description":"Nagios XI contains a vulnerability which can lead to OS command injection on the Nagios XI server.","notes":[{"type":"url","href":"https://nvd.nist.gov/vuln/detail/CVE-2021-25297","label":"nvd.nist.gov/vuln/detail/CVE-2021-25297"}],"vendor":"Nagios","product":"Nagios XI","ransomware":false,"ransomwareUse":"Unknown","exploitationType":null}],"listedCount":1,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":true,"entry":{"source":"cisa","sourceLabel":"CISA","dateAdded":"2022-01-18T00:00:00.000Z","dueDate":"2022-02-01T00:00:00.000Z","requiredAction":"Apply updates per vendor instructions.","name":"Nagios XI OS Command Injection","description":"Nagios XI contains a vulnerability which can lead to OS command injection on the Nagios XI server.","notes":[{"type":"url","href":"https://nvd.nist.gov/vuln/detail/CVE-2021-25297","label":"nvd.nist.gov/vuln/detail/CVE-2021-25297"}],"vendor":"Nagios","product":"Nagios XI","ransomware":false,"ransomwareUse":"Unknown","exploitationType":null}},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_FS0C-SH_NAGIOS-XI-5.7.5-BUGS","name":"Nagios Xi 5.7.5 Bugs","source":"github","url":"https://github.com/fs0c-sh/nagios-xi-5.7.5-bugs/blob/main/README.md","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_8A1552DEE448193F","name":"Exploit Reference (packetstormsecurity.com)","source":"reference","url":"http://packetstormsecurity.com/files/161561/Nagios-XI-5.7.5-Remote-Code-Execution.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_0E939CE131CFE1EE","name":"Exploit Reference (packetstormsecurity.com)","source":"reference","url":"http://packetstormsecurity.com/files/170924/Nagios-XI-5.7.5-Remote-Code-Execution.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_74425C5A39EE0D7A","name":"Exploit Reference (fastly.com)","source":"reference","url":"https://www.fastly.com/blog/anatomy-of-a-command-injection-cve-2021-25296-7-8-with-metasploit-module-and","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"MSF_EXPLOIT_LINUX_HTTP_NAGIOS_XI_CONFIGWIZARDS_AUTHENTICATED_RCE","name":"Nagios XI 5.5.6 to 5.7.5 - ConfigWizards Authenticated Remote Code Exection","source":"metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploit/linux/http/nagios_xi_configwizards_authenticated_rce.rb","maturity":"weaponized","reliabilityScore":1,"verified":true,"type":"remote","platforms":[],"requiresAuth":false,"exploitdb":null,"metasploit":{"fullname":"exploit/linux/http/nagios_xi_configwizards_authenticated_rce","rank":"600","rankName":"excellent","postAuth":false,"check":true,"stability":["crash-safe"],"sideEffects":["artifacts-on-disk","ioc-in-logs"],"reliability":["repeatable-session"]}}],"exploitCount":5,"weaknesses":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","description":"The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/78.html"}],"affected":[{"vendor":"nagios","product":"nagios_xi","name":"Nagios XI","label":"nagios_xi","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 5.5.6, ≤ 5.7.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 5.5.6, ≤ 5.7.5","eol":null,"hubHref":"/vendor/nagios/nagios_xi"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://assets.nagios.com/downloads/nagiosxi/versions.php","label":"assets.nagios.com/downloads/nagiosxi/versions.php","hostname":"assets.nagios.com","tags":["Product"]},{"url":"https://github.com/fs0c-sh/nagios-xi-5.7.5-bugs/blob/main/README.md","label":"github.com/fs0c-sh/nagios-xi-5.7.5-bugs/blob/main/README.md","hostname":"github.com","tags":["Exploit","Third Party Advisory"]},{"url":"http://packetstormsecurity.com/files/161561/Nagios-XI-5.7.5-Remote-Code-Execution.html","label":"packetstormsecurity.com/files/161561/Nagios-XI-5.7.5-Remote-Code-Execution.html","hostname":"packetstormsecurity.com","tags":["Exploit","Third Party Advisory","VDB Entry"]},{"url":"http://packetstormsecurity.com/files/170924/Nagios-XI-5.7.5-Remote-Code-Execution.html","label":"packetstormsecurity.com/files/170924/Nagios-XI-5.7.5-Remote-Code-Execution.html","hostname":"packetstormsecurity.com","tags":["Exploit","Third Party Advisory","VDB Entry"]},{"url":"https://www.fastly.com/blog/anatomy-of-a-command-injection-cve-2021-25296-7-8-with-metasploit-module-and","label":"www.fastly.com/blog/anatomy-of-a-command-injection-cve-2021-25296-7-8-with-metasploit-module-and","hostname":"www.fastly.com","tags":["Exploit","Third Party Advisory"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-25297","label":"www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-25297","hostname":"www.cisa.gov","tags":["Government Resource","US Government Resource"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-02-15T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"kev-added","date":"2022-01-18T00:00:00.000Z","label":"Added to CISA KEV","detail":"Nagios XI OS Command Injection","source":"cisa"},{"kind":"kev-due","date":"2022-02-01T00:00:00.000Z","label":"CISA remediation due","detail":"Apply updates per vendor instructions.","source":"cisa"},{"kind":"modified","date":"2026-07-09T00:12:25.674Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":85,"level":"critical","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T21:14:47.306Z","stale":false,"partial":false}}