# CVE-2026-25772: Wazuh Database Synchronization Vulnerable to Stack-based Buffer Overflow via snprintf Integer Underflow

- Severity: Medium 4.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 32% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-17T18:11:05.707Z
- Modified: 2026-06-17T10:25:12.497Z
- Weaknesses: CWE-121, CWE-191
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- wazuh wazuh: >= 4.4.0, < 4.14.3; from 4.4.0 before 4.14.3

## Every score

- GitHub_M: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/wazuh/wazuh/security/advisories/GHSA-h7vp-j34v-h6j5> (exploit, mitigation, vendor-advisory)

## Sources

- CVE List: [CVE-2026-25772](https://www.cve.org/CVERecord?id=CVE-2026-25772), CVE Terms of Use, modified 2026-03-17
- NVD: [CVE-2026-25772](https://nvd.nist.gov/vuln/detail/CVE-2026-25772), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-25772 · Whole record: https://cve.day/CVE-2026-25772.json · Rebuilt by cve.day 2026-11-25T22:59:16.052Z
