Skip to content
Server Security Center
KEVhigh8.8

CVE-2021-25297: Nagios XI OS Command Injection

Nagios XI · listed in the CISA catalog of actively exploited vulnerabilities since 2022-01-18.

CVSS v3.1 (CISA ADP)
8.8
high
EPSS (exploit probability, 30 days)
58%
higher than 99.1% of all CVEs
Added to CISA KEV
2022-01-18
US federal due date 2022-02-01
Automatable (CISA SSVC)
no
technical impact: total

CVE-2021-25297 explained

CVE-2021-25297 is an OS command injection vulnerability in Nagios XI. It sits in the switch configuration wizard file and comes from improper sanitization of input from authenticated users. It matters because successful exploitation runs commands on the Nagios XI server. CISA lists it as known to be exploited by attackers.

Impact

An attacker with a low-privileged Nagios XI account can inject operating system commands on the server over the network with a single HTTP request. No user interaction is needed. This can fully compromise confidentiality, integrity and availability. CISA rates the technical impact as total, meaning total control of the affected component. CISA rates it as not automatable, so each attack needs manual steps. Attackers are known to exploit it.

Who is affected

The CVE description names Nagios XI version xi-5.7.5 as affected. The CVE record itself lists no structured affected versions and names no fixed version. This does not mean that no fix exists. Check the Nagios vendor advisory for the versions that contain the fix. CISA's required action is to apply updates per vendor instructions.

Written with AI from the data on this page and checked against it automatically.

Official 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.

CISA required action: Apply updates per vendor instructions.

CISA notes

How to fix it

  • The CVE record names no fixed version – check the vendor advisory and CISA's required action for updates and mitigations.
  • Vendor advisory: assets.nagios.com/downloads/nagiosxi/versions.php
  • CISA's deadline for US federal agencies: 2022-02-01 (passed) – a useful benchmark for everyone else, too.

What to do

  1. Follow the Nagios vendor advisory and update Nagios XI to a version that contains the fix.
  2. Apply updates per vendor instructions, as CISA's required action states.
  3. Restrict network access to the Nagios XI web interface to trusted administrative networks only.
  4. Review Nagios XI user accounts, remove unneeded ones and enforce strong credentials.
  5. Check the Nagios XI server for signs of compromise, such as unexpected processes, files or account changes.

The CVE record names no fixed version. Consult the Nagios vendor advisory for the fixed release and follow CISA's required action to apply updates per vendor instructions. Until updated, keep the Nagios XI web interface off the internet, limit access to trusted users and networks, and monitor the server for signs of compromise.

Written with AI from the data on this page and checked against it automatically.

CISA's assessment (SSVC)

Exploitation
Exploited in the wild
Automatable
No – each attack needs manual steps
Technical impact
Total – full control of the component or total information disclosure

Weakness: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Questions about CVE-2021-25297

Do attackers need an account to exploit CVE-2021-25297?
Yes. The flaw involves authenticated user-controlled input, and the CVSS vector requires low privileges. Any low-privileged account could be enough, so protecting accounts and limiting access matters.
Is CVE-2021-25297 being exploited?
Yes. CISA added it to its Known Exploited Vulnerabilities catalog on 2022-01-18, with a US federal due date of 2022-02-01. Whether it is used in ransomware campaigns is unknown.
Which version fixes the issue?
The CVE record names no fixed version. Refer to the Nagios vendor advisory for the fixed release and apply updates per vendor instructions.

Written with AI from the data on this page and checked against it automatically.

References

Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-22. Always confirm with the vendor's or distribution's advisory before patching.