{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "3.9.0"
              },
              {
                "fixed": "4.14.8"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "DESCRIPTION",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "18bac2de69f5a37e5c3c4e2dfbce5a0093042ea7"
            },
            {
              "fixed": "f470ad7db717b18db7feeed568949643698f0f34"
            }
          ],
          "repo": "https://github.com/wazuh/wazuh",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-88p6-7cm8-xwj8"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-862"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74040.json"
  },
  "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.",
  "id": "CVE-2026-74040",
  "modified": "2026-10-15T02:31:04.063717996Z",
  "published": "2026-10-13T13:27:30.557Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74040.json"
    },
    {
      "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"
    },
    {
      "type": "FIX",
      "url": "https://github.com/wazuh/wazuh/releases/tag/v4.14.8"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/wazuh/wazuh"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Wazuh 3.9.0 before 4.14.8 Arbitrary File Overwrite RCE via process_files_from_worker"
}