CVE-2022-40497 Code injection in n/a
Authenticated attackers can execute arbitrary code on Wazuh servers via the Active Response endpoint, requiring immediate patching.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2022-40497?
CVE-2022-40497 is a high-severity code injection vulnerability in Wazuh Wazuh, published on 27 Sep 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Wazuh v3.6.1 - v3.13.5, v4.0.0 - v4.2.7, and v4.3.0 - v4.3.7 were discovered to contain an authenticated remote code execution (RCE) vulnerability via the Active Response endpoint.
Weakness: CWE-94
Which versions are affected by CVE-2022-40497?
It affects 1 product.
Products include Wazuh Wazuh.
How do I fix CVE-2022-40497?
No fix has been published for CVE-2022-40497 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2022-40497 being exploited?
There is no known exploitation of CVE-2022-40497 in the wild and no public exploit code.
Other vulnerabilities in Wazuh Wazuh
- CVE-2025-24016 Wazuh Server Deserialization of Untrusted Data
- CVE-2024-32038 Wazuh Analysis Engine Event Decoder Heap-based Buffer Overflow Remote Code Execution Vulnerability
- CVE-2021-44079 Command injection in n/a
- CVE-2024-1243 Remote code execution and local privilege escalation in Wazuh Windows agent via NetNTLMv2 hash theft
- CVE-2026-61800 Wazuh cluster worker file sync allows arbitrary file write under /var/ossec (incomplete fix for CVE-2026-30893)
Sources
Also known as GHSA-q6rw-39p5-wphc.