{"schemaVersion":3,"id":"CVE-2026-46343","aliases":[],"status":"published","duplicateOf":null,"title":"Wazuh: Arbitrary File Deletion via Cluster Protocol – Incomplete Path Validation in end_receiving_file()","description":"Wazuh is a free and open source platform used for threat prevention, detection, and response. From 4.0.0 until 4.14.6 and 5.0.0-beta2, WazuhCommon.end_receiving_file() in framework/wazuh/core/cluster/common.py allows a cluster-authenticated node to delete files outside WAZUH_PATH. A syn_i_w_m_e request with an unknown task_id reaches the cleanup branch, where an attacker-controlled filename is passed to os.path.join without canonicalization or confinement. Absolute paths and traversal sequences can therefore target files such as ossec.conf, jwt_secret.json, TLS certificates, and ruleset files that are accessible to the Wazuh manager process. Deletion can disable the manager, invalidate API tokens, or disrupt cluster and API connectivity. This issue is fixed in versions 4.14.6 and 5.0.0-beta2.","dates":{"published":"2026-08-19T16:07:58.056Z","modified":"2026-08-19T17:47:03.427Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:L/SA:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:L/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.2,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00423,"percentile":0.35585,"severity":"low","asOf":"2026-10-22T00:00:00.000Z","change":{"pp":0.06300000000000003,"baselineDate":"2026-09-22T00:00:00.000Z","baselineScore":0.0036},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00423,"percentile":0.35585}],"last30":[{"date":"2026-09-22T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00423,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00423,"percentile":0.35585}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_WAZUH_WAZUH","name":"Wazuh","source":"github","url":"https://github.com/wazuh/wazuh/issues/9201","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"wazuh","product":"wazuh","name":"wazuh","label":"wazuh","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 5.0.0-beta1, < 5.0.0-beta2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.0.0, < 4.14.6","noFixRecorded":false,"fixedIn":null},{"text":"5.0.0:beta1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 5.0.0-beta1, < 5.0.0-beta2 | ≥ 4.0.0, < 4.14.6 | 5.0.0:beta1","eol":null,"hubHref":"/vendor/wazuh/wazuh"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/wazuh/wazuh/security/advisories/GHSA-cqvw-w2rg-327f","label":"github.com/wazuh/wazuh/security/advisories/GHSA-cqvw-w2rg-327f","hostname":"github.com","tags":["X Refsource CONFIRM","Exploit","Vendor Advisory"]},{"url":"https://github.com/wazuh/wazuh/pull/36060","label":"github.com/wazuh/wazuh/pull/36060","hostname":"github.com","tags":["X Refsource MISC","Issue Tracking","Patch"]},{"url":"https://github.com/wazuh/wazuh/commit/90d43547d166cdbe65e9a3d011f946214df9179c","label":"github.com/wazuh/wazuh/commit/90d43547d166cdbe65e9a3d011f946214df9179c","hostname":"github.com","tags":["X Refsource MISC","Patch"]},{"url":"https://github.com/wazuh/wazuh/releases/tag/v4.14.6","label":"github.com/wazuh/wazuh/releases/tag/v4.14.6","hostname":"github.com","tags":["X Refsource MISC","Patch","Release Notes"]},{"url":"https://github.com/wazuh/wazuh/releases/tag/v5.0.0-beta2","label":"github.com/wazuh/wazuh/releases/tag/v5.0.0-beta2","hostname":"github.com","tags":["X Refsource MISC","Patch","Release Notes"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-08-19T16:07:58.056Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-08-19T17:47:03.427Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":40,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T17:18:38.817Z","stale":false,"partial":false}}