{
  "id": "CVE-2026-25772",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-25772",
  "published_at": "2026-03-17T18:11:05.707Z",
  "title": "Wazuh Database Synchronization Vulnerable to Stack-based Buffer Overflow via snprintf Integer Underflow",
  "vendor": "wazuh",
  "product": "wazuh",
  "cvss": {
    "score": 7.2,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Wazuh is a free and open source platform used for threat prevention, detection, and response. Starting in version 4.4.0 and prior to version 4.14.3, a stack-based buffer overflow vulnerability exists in the Wazuh Database synchronization module (`wdb_delta_event.c`). The SQL query construction logic allows for an integer underflow when calculating the remaining buffer size. This occurs because the code incorrectly aggregates the return value of `snprintf`. If a specific database synchronization payload exceeds the size of the query buffer (2048 bytes), the size calculation wraps around to a massive integer, effectively removing bounds checking for subsequent writes. This allows an attacker to corrupt the stack, leading to a Denial of Service (DoS) or potentially RCE. Version 4.14.3 fixes the issue.",
  "cwe": "CWE-121",
  "cpes": [
    "cpe:2.3:a:wazuh:wazuh:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 4.9,
    "nvd": 7.2
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "wazuh",
        "product": "wazuh",
        "ranges": [
          "\u003e= 4.4.0, \u003c 4.14.3"
        ],
        "fixed_in": [
          "4.14.3"
        ]
      }
    ],
    "upgrade": [
      "Upgrade wazuh to 4.14.3 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/wazuh/wazuh/security/advisories/GHSA-h7vp-j34v-h6j5"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
