---
id: "CVE-2021-25297"
kind: "vulnerability"
aliases: ["CVE-2021-25297"]
title: "Nagios Nagios XI: Nagios XI OS Command Injection"
severity: "critical"
cvss: 9.0
epss: 0.56659
exploited: true
status: "open"
category: "other"
products: [{"name": "Nagios Nagios XI", "fixed": [], "affected": "", "ecosystem": "vendor"}]
ecosystems: ["vendor"]
tags: ["exploited", "nagios-xi", "other", "self-hosted"]
not_affected_if: ["unknown"]
published_at: "2021-02-15T13:15:12+00:00"
first_seen_at: "2026-10-23T19:11:53+00:00"
updated_at: "2026-10-23T21:57:35+00:00"
sources: [{"source": "kev", "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2021-25297", "first_seen_at": "2026-10-23T19:11:53+00:00"}, {"source": "epss", "url": "https://api.first.org/data/v1/epss?cve=CVE-2021-25297", "first_seen_at": "2026-10-23T19:13:44+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-25297", "first_seen_at": "2026-10-23T21:57:35+00:00"}]
---

# Nagios Nagios XI: Nagios XI OS Command Injection

Nagios XI, a server monitoring product, has an OS command injection flaw that lets input run shell commands on the Nagios XI server. CISA lists it as actively exploited in the wild.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- vendor:Nagios Nagios XI affected ? fixed ?

## Fix

Apply updates per vendor instructions (sources do not name the fixed version).

## Timeline

- 2026-10-23T19:11:53+00:00 kev https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2021-25297
- 2026-10-23T19:13:44+00:00 epss https://api.first.org/data/v1/epss?cve=CVE-2021-25297
- 2026-10-23T21:57:35+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2021-25297

## From the sources

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.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
