CVE-2021-25298 Nagios XI OS Command Injection

Exploited in the wild High 8.8 Published Updated

Authenticated attackers can execute arbitrary OS commands on Nagios XI servers via improper input sanitization in the cloud-VM configuration wizard.

Exploited in the wild
Since 18 Jan 2022
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-25298?

CVE-2021-25298 is a high-severity command injection vulnerability in Nagios Nagios Xi, published on 15 Feb 2021. Any signed-in user can exploit it over the network, with no action from the victim.

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/cloud-vm/cloud-vm.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.

Weakness: CWE-78

Which versions are affected by CVE-2021-25298?

It affects 1 product.

Products include Nagios Nagios Xi.

How do I fix CVE-2021-25298?

No fix has been published for CVE-2021-25298 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 1 Feb 2022.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2021-25298 being exploited?

Yes. Attackers have exploited CVE-2021-25298 in the wild since at least 18 Jan 2022.

Public exploit code: 1 Metasploit module and 1 Nuclei template.

All Nagios Nagios Xi vulnerabilities

Sources

Also known as GHSA-6gq5-wx57-577c.

Is CVE-2021-25298 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free