{"id":"CVE-2026-74040","summary":"Wazuh 3.9.0 before 4.14.8 Arbitrary File Overwrite RCE via process_files_from_worker","details":"Wazuh versions from 3.9.0 before 4.14.8 contain an arbitrary file overwrite vulnerability in MasterHandler.process_files_from_worker allowing a cluster worker to overwrite protected master files. Attackers controlling a worker can use a trailing-slash basename bypass and missing extra_valid enforcement to overwrite ossec.conf and agent.conf, achieving root remote code execution across the manager and every agent.","aliases":["GHSA-88p6-7cm8-xwj8"],"modified":"2026-10-14T02:48:37.442778034Z","published":"2026-10-13T13:27:30.557Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74040.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-862"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74040.json"},{"type":"PACKAGE","url":"https://github.com/wazuh/wazuh"},{"type":"FIX","url":"https://github.com/wazuh/wazuh/releases/tag/v4.14.8"},{"type":"ADVISORY","url":"https://github.com/wazuh/wazuh/security/advisories/GHSA-88p6-7cm8-xwj8"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74040"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/wazuh-3.9.0-before-4.14.8-arbitrary-file-overwrite-rce-via-process-files-from-worker"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/wazuh/wazuh","events":[{"introduced":"18bac2de69f5a37e5c3c4e2dfbce5a0093042ea7"},{"fixed":"f470ad7db717b18db7feeed568949643698f0f34"}],"database_specific":{"source":"AFFECTED_FIELD","extracted_events":[{"introduced":"3.9.0"},{"fixed":"4.14.8"}]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74040.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H"}]}