CVE DatabaseCVE-2021-25296
한국어 권고문 →
CVE-2021-252968.8/HIGHCISA KEV

Nagios XI 5.7.5 Remote OS Command Injection Vulnerability (CVE-2021-25296) Security Advisory

⚡ Jump to Patch
Affected Vendors
nagios
Affected Components
nagios_xi
Published Date
2021-02-15
CVSS v3.1
8.8
HIGH
EPSS (30d)
71.9%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

Nagios XI version 5.7.5

Impact

Authenticated attackers can execute arbitrary OS commands on the Nagios XI server via a single crafted HTTP request, leading to complete system compromise.

Mitigation

Immediately upgrade Nagios XI to the latest secure version (5.8.0 or higher) and restrict access to the web console.

Affected Products & Version Scope

Nagios XI version 5.7.5 with the Windows WMI config wizard enabled

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

Upgrade Nagios XI to the latest secure release (5.8.0 or higher) using the official upgrade script.

bash
# Log in to the Nagios XI server as root and run the upgrade script
cd /tmp
wget https://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar xzf xi-latest.tar.gz
cd nagiosxi
./upgrade

2. Temporary Workaround & Hardening Configuration

If patching cannot be applied immediately, disable the vulnerable wizard script and restrict network access to the Nagios XI console.

bash
# Remove execution permissions from the vulnerable PHP script
chmod 000 /usr/local/nagiosxi/html/includes/configwizards/windowswmi/windowswmi.inc.php

# Restrict access to the Nagios XI web interface via Apache configuration
# Edit /etc/httpd/conf.d/nagiosxi.conf to allow only trusted IP ranges
# systemctl restart httpd

3. Log Audit & IoC Verification Commands

Inspect Apache access logs for suspicious requests targeting the vulnerable script containing shell metacharacters.

bash
# Search Apache access logs for suspicious requests to windowswmi.inc.php
grep -i 'windowswmi.inc.php' /var/log/httpd/access_log | grep -E '(%3b|%26|%7c|;|\&|\|)'

# Verify the currently installed Nagios XI version
cat /usr/local/nagiosxi/var/xiversion
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
Cloudflare Enterprise & Pro WAF
Due to active exploitation in the wild (CISA KEV), immediate upgrade of Nagios XI to version 5.8.0 or higher is strongly recommended.

Block Exploits Instantly with Managed Virtual Patching Rules

Can't patch production immediately? Deploy managed WAF rules at the edge to intercept RCE, SQLi, and deserialization payloads before they hit your origin server.

3-min setup · Automated Zero-Day Managed Rules
Practice Exploiting & Patching This Web Vulnerability in an Interactive Lab
Launch Hands-On Security Lab

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

This vulnerability (CVE-2021-25296) is an OS command injection flaw in Nagios XI, a widely used IT infrastructure monitoring solution. The root cause resides in the /usr/local/nagiosxi/html/includes/configwizards/windowswmi/windowswmi.inc.php script. The application fails to properly sanitize and validate authenticated user-controlled input before passing it to system shell execution functions.

2. Exploitation Mechanics & Attack Scenario

An attacker with valid credentials (even low-privileged ones) can exploit this vulnerability by sending a single HTTP POST request to the Windows WMI configuration wizard. By injecting shell metacharacters (such as ;, &, or |) followed by malicious commands into the vulnerable parameters, the attacker forces the underlying PHP script to execute arbitrary OS commands with the privileges of the web server or Nagios process (typically nagios or apache).

3. Infrastructure & Business Impact

With a CVSS 3.1 score of 8.8 (High) and its inclusion in the CISA KEV (Known Exploited Vulnerabilities) catalog, this vulnerability poses a severe threat. Successful exploitation allows attackers to gain a foothold on the monitoring server, potentially exposing sensitive infrastructure credentials and enabling lateral movement across the internal network.

Official Vendor Advisories & References

Frequently Asked SecOps Questions (CVE-2021-25296)

FAQ

Q1. How critical is CVE-2021-25296 and is it actively exploited in the wild?

CVE-2021-25296 is rated CVSS 8.8 (HIGH) with a 30-day EPSS exploitation probability of 71.9%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2021-25296?

Primary impacted vendors include nagios across nagios_xi. Scope summary: Nagios XI version 5.7.5 with the Windows WMI config wizard enabled

Q3. What temporary mitigations or workarounds exist for CVE-2021-25296 before patching?

[Mitigation] Immediately upgrade Nagios XI to the latest secure version (5.8.0 or higher) and restrict access to the web console. Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2021-25296

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (nagios)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2021-25296 Nagios XI 5.7.5 Remote OS Command Injection Vulnerability (CVE-2021-25296) Security Advisory (CVSS 8.8) - Patch & Workaround | CVE Pulse