CVE-2021-26814 Improper Input Validation (RCE)

High 8.8 Published Updated

Authenticated users can execute arbitrary code with administrative privileges via incomplete input validation in the Wazuh API file management endpoint.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-26814?

CVE-2021-26814 is a high-severity code injection vulnerability in Wazuh Wazuh, published on 6 Mar 2021. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Wazuh API in Wazuh from 4.0.0 to 4.0.3 allows authenticated users to execute arbitrary code with administrative privileges via /manager/files URI. An authenticated user to the service may exploit incomplete input validation on the /manager/files API to inject arbitrary code within the API service script.

Weakness: CWE-22

Which versions are affected by CVE-2021-26814?

2 open source packages ship an affected version, including wazuh. It affects 1 product.

PackageAffectedFixed in
wazuh npmFrom 4.0.04.0.4
wazuh npmFrom 4.0.04.0.4

Products include Wazuh Wazuh.

How do I fix CVE-2021-26814?

Upgrade wazuh to 4.0.4 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2021-26814 being exploited?

There is no known exploitation of CVE-2021-26814 in the wild and no public exploit code.

Public exploit code: 3 proofs of concept on GitHub.

All Wazuh Wazuh vulnerabilities

Sources

Also known as GHSA-w36g-q975-37rg.

Is CVE-2021-26814 in your software?

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

Check your SBOMs for free