SecurityContext

CVE-2021-25297: Nagios XI - Command Injection

  • Cve: CVE-2021-25297
  • Name: Nagios XI - 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.
  • Impact: Authenticated attackers can execute arbitrary commands, potentially leading to full system compromise and data theft.
  • Remediation: Update to the latest version of Nagios XI that addresses this vulnerability or apply security patches provided by Nagios.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: logged_in
  • Requirements: Attacker needs to be authenticated
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.58114
  • Epss percentile: 0.99104
  • Assignee: [email protected]
  • Published at: 2021-02-15T13:15:12Z
  • Age in days: 2108
  • Modified at: 2026-07-09T13:39:51Z
  • Public exploits total: 6
  • References total: 9
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-25297
  • Nvd status: analyzed
  • Checked, none or zero: patch available, public exploits capped, oss, projects total, projects, rejected by nvd
  • Not known: hackerone

Cwe

IdName
NVD-CWE-Other—
CWE-78Improper Neutralization of Special Elements used in an OS Command

Known exploited entries

ListAdded dateDue dateRansomware use
cisa2022-01-182022-02-01no
vulncheck2021-06-01—no

Nuclei templates

IdUrl
CVE-2021-25297https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-25297.yaml

Public exploits

UrlSourceAdded date
http://packetstormsecurity.com/files/161561/Nagios-XI-5.7.5-Remote-Code-Execution.htmlnvd2021-02-15
http://packetstormsecurity.com/files/170924/Nagios-XI-5.7.5-Remote-Code-Execution.htmlnvd2021-02-15
https://github.com/fs0c-sh/nagios-xi-5.7.5-bugs/blob/main/README.mdnvd2021-02-15
https://www.fastly.com/blog/anatomy-of-a-command-injection-cve-2021-25296-7-8-with-metasploit-module-andnvd2021-02-15
https://github.com/fs0c-sh/nagios-xi-5.7.5-bugs.gitvulncheck-xdb2021-02-13

References

UrlSourceTags
http://packetstormsecurity.com/files/161561/Nagios-XI-5.7.5-Remote-Code-Execution.htmlnvdExploit, Third Party Advisory, VDB Entry
http://packetstormsecurity.com/files/170924/Nagios-XI-5.7.5-Remote-Code-Execution.htmlnvdExploit, Third Party Advisory, VDB Entry
https://github.com/fs0c-sh/nagios-xi-5.7.5-bugs/blob/main/README.mdnvdExploit, Third Party Advisory
https://www.fastly.com/blog/anatomy-of-a-command-injection-cve-2021-25296-7-8-with-metasploit-module-andnvdExploit, Third Party Advisory
https://assets.nagios.com/downloads/nagiosxi/versions.phpnvdProduct
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-25297nvdUS Government Resource
https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-25297.yamlnuclei_templateNuclei Template
https://euvd.enisa.europa.eu/enisa/EUVD-2021-12197vulncheckVulncheck Reported Exploitation
https://unit42.paloaltonetworks.com/network-attack-trends-february-april-2021/vulncheckVulncheck Reported Exploitation

Products

ProductAffectedPlatform boundSourcesUrl
nagios:nagios_xi>= 5.5.6, <= 5.7.5nonvd/v1/products/nagios/nagios_xi

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Known exploited: yes
  • Known exploited since: 2022-01-18
  • Known exploited by: cisa, vulncheck
  • Vulncheck known exploited since: 2021-06-01
  • Exploitation seen: yes
  • Public exploit: yes
  • Public exploit count: 6
  • Public exploit first date: 2021-02-13
  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 1653
  • Checked, none or zero: initial access
  • Not known: initial access since, hackerone reports

Nuclei template