{"answers":{"affected":"2 open source packages ship an affected version, including wazuh. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-26814 in the wild and no public exploit code.","fix":"Upgrade wazuh to 4.0.4 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2021-26814 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2021-26814 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- wazuh (npm): affected from 4.0.0; fixed in 4.0.4\n- wazuh (npm): affected from 4.0.0; fixed in 4.0.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-26814/ (Markdown: https://insights.sbomify.com/CVE-2021-26814/index.md)","id":"CVE-2021-26814","markdown":"https://insights.sbomify.com/CVE-2021-26814/index.md","name":"CVE-2021-26814","record":{"aliases":["GHSA-w36g-q975-37rg"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Wazuh API","requires_auth":"low_privilege","summary":"Authenticated users can execute arbitrary code with administrative privileges via incomplete input validation in the Wazuh API file management endpoint.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"wazuh","vendor":"wazuh"}],"cvss":{"score":8.8,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2021-05-17","github_poc":3,"max_poc_stars":4,"metasploit":0,"nuclei":0,"refs":[{"date":"2021-05-17T10:13:47Z","kind":"github_poc","ref":"https://github.com/WickdDavid/CVE-2021-26814","stars":4,"title":"A simple python PoC to exploit CVE-2021-26814 and gain RCE on Wazuh Manager (v.4.0.0-4.0.3) through the API service."},{"date":"2021-05-18T13:45:47Z","kind":"github_poc","ref":"https://github.com/CYS4srl/CVE-2021-26814","stars":2,"title":"PoC of CVE-2021-26814"},{"date":"2021-07-10T16:04:28Z","kind":"github_poc","ref":"https://github.com/paolorabbito/Internet-Security-Project---CVE-2021-26814","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"Improper Input Validation (RCE)","id":"CVE-2021-26814","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":"wazuh:wazuh","products":["wazuh:wazuh"],"type":"code_injection","year":"2021"},"n_packages":2,"n_references":2,"next":{"headline":"SQL injection in n/a","id":"CVE-2021-26822"},"packages":[{"ecosystem":"npm","fixed":["4.0.4"],"introduced":["4.0.0"],"last_affected":[],"package":"wazuh","purl":null,"source":"GHSA-w36g-q975-37rg"},{"ecosystem":"npm","fixed":["4.0.4"],"introduced":["4.0.0"],"last_affected":[],"package":"wazuh","purl":"pkg:npm/wazuh","source":"GHSA-w36g-q975-37rg"}],"prev":{"headline":"markdown2 Regular Expression Denial of Service","id":"CVE-2021-26813"},"products":["n/a"],"published":"2021-03-06","related":[{"cvss_score":9.9,"headline":"Wazuh Server Deserialization of Untrusted Data","id":"CVE-2025-24016","kev_date_added":"2025-06-10","published":"2025-02-10"},{"cvss_score":9.8,"headline":"Wazuh Analysis Engine Event Decoder Heap-based Buffer Overflow Remote Code Execution Vulnerability","id":"CVE-2024-32038","kev_date_added":null,"published":"2024-04-19"},{"cvss_score":9.8,"headline":"Command injection in n/a","id":"CVE-2021-44079","kev_date_added":null,"published":"2021-11-22"},{"cvss_score":9.5,"headline":"Remote code execution and local privilege escalation in Wazuh Windows agent via NetNTLMv2 hash theft","id":"CVE-2024-1243","kev_date_added":null,"published":"2025-06-11"},{"cvss_score":9.1,"headline":"Wazuh cluster worker file sync allows arbitrary file write under /var/ossec (incomplete fix for CVE-2026-30893)","id":"CVE-2026-61800","kev_date_added":null,"published":"2026-08-27"},{"cvss_score":9.1,"headline":"Wazuh: merged-file header path traversal in cluster sync allows arbitrary file write under WAZUH_PATH in Wazuh manager","id":"CVE-2026-48024","kev_date_added":null,"published":"2026-08-19"},{"cvss_score":9.1,"headline":"Path traversal in wazuh","id":"CVE-2026-48162","kev_date_added":null,"published":"2026-08-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"Authenticated users can execute arbitrary code with administrative privileges via incomplete input validation in the Wazuh API file management endpoint.","url":"https://insights.sbomify.com/CVE-2021-26814/"}