---
id: CVE-2021-25296
title: Nagios XI version xi-5.7.5 is affected by OS command injection
summary: >-
  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/windowswmi/windowswmi.inc.php
  due to improper sanitization of authenticated user-control…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
vendor: nagios
product: nagios_xi
affected:
  - 'nagios_xi >= 5.5.6, <= 5.7.5'
published: '2021-02-15'
updated: '2026-07-05'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2021-25296'
references:
  - url: >-
      http://packetstormsecurity.com/files/161561/Nagios-XI-5.7.5-Remote-Code-Execution.html
    label: cve@mitre.org
  - url: >-
      http://packetstormsecurity.com/files/170924/Nagios-XI-5.7.5-Remote-Code-Execution.html
    label: cve@mitre.org
  - url: 'https://assets.nagios.com/downloads/nagiosxi/versions.php'
    label: cve@mitre.org
  - url: 'https://github.com/fs0c-sh/nagios-xi-5.7.5-bugs/blob/main/README.md'
    label: cve@mitre.org
  - url: >-
      https://www.fastly.com/blog/anatomy-of-a-command-injection-cve-2021-25296-7-8-with-metasploit-module-and
    label: cve@mitre.org
  - url: 'http://nagios.com'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      http://packetstormsecurity.com/files/161561/Nagios-XI-5.7.5-Remote-Code-Execution.html
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      http://packetstormsecurity.com/files/170924/Nagios-XI-5.7.5-Remote-Code-Execution.html
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://assets.nagios.com/downloads/nagiosxi/versions.php'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://github.com/fs0c-sh/nagios-xi-5.7.5-bugs/blob/main/README.md'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://www.fastly.com/blog/anatomy-of-a-command-injection-cve-2021-25296-7-8-with-metasploit-module-and
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-25296
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
  - kev
  - in-the-wild
  - exploit-available
epss: 0.72182
epssPercentile: 0.99417
kev: true
kevDateAdded: '2022-01-18'
kevDueDate: '2022-02-01'
kevRansomware: false
exploited: true
ingestedAt: '2026-07-05T02:00:01.395Z'
exploits:
  metasploit:
    - exploit/linux/http/nagios_xi_configwizards_authenticated_rce
  nuclei:
    - CVE-2021-25296
  checkedAt: '2026-09-25T08:20:38.318Z'
exploitAvailable: true
---

## Overview

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/windowswmi/windowswmi.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.

## Affected

- `nagios_xi >= 5.5.6, <= 5.7.5`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
