Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessWrite crafted snort-full log to monitored path
-
DeliveryTrigger f_msg_size integer underflow via oversized classification line
-
ExploitUnbounded strncat overwrites 65,280-byte stack buffer
-
ExecutionOverwrite SEH handler pointer with attacker-controlled bytes
-
ImpactExecute arbitrary code as SYSTEM
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires all of the following: (1) the Wazuh agent is configured with a localfile block specifying logformat snort-full pointing to a file path - this is a non-default, operator-added configuration for Snort IDS integration; (2) the agent is the official 32-bit Windows build (wazuh-agent.exe), which ships without __security_check_cookie, SafeSEH, or a Load Configuration directory as confirmed by the advisory; (3) the attacker has local write access to the monitored log file on the same host. Exploitation is not possible against Linux agents (the snort-full dispatcher unconditionally overwrites the read function pointer with read_syslog on non-Windows builds, an accident of a decade-old commit); 64-bit Windows agents (architecture difference); or any Windows agent not explicitly configured with the snort-full log format. No network attack vector exists. The advisory explicitly states that fixing the Linux dispatcher before fixing the overflow would immediately expose Linux managers and agents to the same attack on all platforms. |
| Impact | The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:L/UI:N) correctly reflects the local attack surface: the attacker must write crafted content to a file the Wazuh agent is configured to monitor as snort-full format, which is a non-default configuration. The provided vector scores only VA:H (availability), but this understates the confirmed impact: the GHSA advisory empirically demonstrates SEH handler overwrite at fault offset 0x43434343 on a 32-bit Windows agent that ships without stack cookies, SafeSEH, or a Load Configuration directory. This constitutes a practical code-execution primitive at SYSTEM privilege, warranting full C/I/A assessment on the vulnerable system. The decision label is this_month, consistent with the absence of a CISA KEV listing and no confirmed widespread exploitation. A public PoC batch script is included verbatim in the GHSA advisory, lowering the bar for reproduction. Linux exploitation is currently blocked by an independent dispatcher bug that accidentally routes snort-full records to read_syslog; the advisory explicitly warns that fixing the dispatcher without first fixing the overflow immediately exposes Linux agents to the same attack - the two defects must be remediated together. Teams running 32-bit Windows agents with snort-full configured face a real, low-complexity local privilege escalation to SYSTEM; all other Wazuh deployments are presently unexposed to code execution but should patch to 4.14.9 before any dispatcher fix is applied. No EPSS score was provided in the input; exploitation probability cannot be independently quantified here. |
| Exploit ScenarioDerived | An attacker with local write access to a file monitored by the Wazuh agent under snort-full log format crafts a three-line Snort alert record: a first line (~60 KB) to consume most of the 65,280-byte f_msg stack buffer, a second line prefixed with '[Classification: ' (~40 KB) to cause f_msg_size to wrap negative, and a third line matching the Snort timestamp pattern (~30 KB) whose strncat() call is then bounded by the near-SIZE_MAX conversion of the negative integer, overflowing the stack past f_msg. A public PoC batch script is included in the GHSA advisory. On 32-bit Windows agents (WazuhSvc running as SYSTEM) lacking stack cookies and SafeSEH, this deterministically overwrites the SEH handler with attacker-controlled bytes - confirmed at fault offset 0x43434343 - providing a practical code-execution primitive at SYSTEM privilege. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 06, 2026
Stack-based buffer overflow in the Wazuh agent's logcollector read_snortfull() reader lets a local user who can write to a monitored snort-full log crash the agent and, on the official 32-bit Windows build, overwrite a SEH handler pointer with attacker-controlled bytes (WER fault offset 0x43434343) inside the SYSTEM-running wazuh-agent.exe service. The affected range is Wazuh agent 1.0.0 through 4.14.8, but exploitation is constrained: it requires the non-default snort-full localfile configuration and a 32-bit Windows agent that ships without __security_check_cookie, SafeSEH, or a Load Configuration directory, while Linux agents cannot reach the vulnerable function because the snort-full dispatcher is miswired to read_syslog. A public proof-of-concept exploit batch script accompanies advisory GHSA-3gq8-gg8f-5h8h, no CISA KEV entry or confirmed active exploitation is reported, and the vendor fix is 4.14.9.
RemediationAI
Vendor-released patch: Wazuh 4.14.9, available from https://github.com/wazuh/wazuh/releases/tag/v4.14.9 - upgrade the agent package (/wazuh-agent fixed in 4.14.9) as scheduled under the this_month priority; the release also adds stack canary, PIE, full RELRO and FORTIFY_SOURCE compiler hardening to Linux binaries (PR #38571), which converts this class of bug into a safe abort. Confirm the corrected read_snortfull() accounting is present in src/logcollector/src/read_snortfull.c, where f_msg_size must be recomputed from strlen(f_msg) after each append and the f_msg_size - 40 preprocessor branch must be guarded against underflow. If upgrading cannot be done immediately, the effective workaround is to remove snort-full localfile blocks from ossec.conf or repoint them to a path that untrusted local users cannot write; the trade-off is loss of Snort full-alert ingestion for that agent. Restricting NTFS ACLs on the monitored snort-full log to trusted accounts reduces the attack surface but does not fix the bug and is fragile if the log directory permissions are later widened. Do not fix the Linux snort-full dispatcher in set_read() without first applying the overflow fix: the advisory warns that restoring the snort-full routing on Linux before correcting the buffer accounting would immediately expose Linux managers and agents to the same attack. Details and PoC caveats are in https://github.com/wazuh/wazuh/security/advisories/GHSA-3gq8-gg8f-5h8h and https://www.vulncheck.com/advisories/wazuh-agent-1.0.0-before-4.14.9-stack-buffer-overflow-via-read-snortfull.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is CWE-121 in the logcollector module, file src/logcollector/src/read_snortfull.c, which assembles multi-line Snort "full" alert records into fixed 65,280-byte stack buffers (OS_MAX_LOG_SIZE = OS_MAXSTR 65536 - OS_LOG_HEADER 256). The bookkeeping integer f_msg_size starts at 65,279 and is decremented by strlen(str) - the full length of each line - even though strncat() may append fewer bytes once the remaining space is exhausted; a line longer than the remaining space therefore drives f_msg_size negative, and the next strncat() converts that negative int to a size_t near SIZE_MAX and copies the attacker-controlled remainder past the end of f_msg. The advisory confirms a three-line record is sufficient: a bounded snprintf line, a long [Classification: ... line that fills the buffer exactly, and a third line whose strncat() bound becomes huge (about 30 KB copied in the demonstrated case); the same defective accounting exists in the preprocessor branch at f_msg_size - 40. On the official 32-bit Windows agent the overflow overwrites an SEH handler pointer with attacker bytes (0x43434343 observed in Windows Error Reporting) in a process running as the WazuhSvc SYSTEM service, and the binary lacks stack cookies, SafeSEH, and a Load Configuration directory, making this a practical code-execution primitive. The CPE cpe:2.3:a:wazuh:wazuh:*:*:*:*:*:*:*:* covers the whole product line, but the assessed vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H correctly limits exposure to local attackers with write access to the monitored file. Compatibility detail confirmed by the advisory: on non-Windows builds a decades-old set_read() dispatcher bug (commit d6eba44a1d) makes the snort-full branch fall through to read_syslog, so the overflow is currently unreachable on Linux; fixing the dispatcher before the overflow would expose Linux manager and agent builds to the same flaw. 64-bit Windows agents and any agent without an explicit snort-full localfile block are outside the exploitation path.
Know when Wazuh gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Local write to a monitored file path (AV:L, PR:L); empirically confirmed SYSTEM-level code execution yields full C/I/A on the agent host (S:U).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Wazuh agent from 1.0.0 before 4.14.9 contains a stack-based buffer overflow in the logcollector snort-full log reader that miscalculates remaining buffer space in read_snortfull(). Attackers who write crafted multi-line content to a monitored snort-full log can overflow the 65,280-byte stack buffer, crashing the agent or overwriting an SEH handler on 32-bit Windows agents running as SYSTEM.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
Authenticated cluster peers in Wazuh Manager 4.4.0 through 4.14.3 can write arbitrary files outside the cluster synchron
In the wazuh-slack active response script in Wazuh 4.2.x before 4.2.5, untrusted user agents are passed to a curl comman
Path-traversal-driven root code execution affects the Wazuh security platform's cluster synchronization layer in version
Arbitrary file read in Wazuh cluster deployments (4.0.0 through 4.14.5, and 5.0.0-beta1/beta2) lets a peer node that alr
Arbitrary file write leading to root remote code execution affects Wazuh worker nodes in clustered deployments running v
A critical deserialization vulnerability in Wazuh's cluster mode allows attackers with access to any worker node to achi
Wazuh Agent before 4.13.0 on Windows can be made by an authenticated, high-privileged configuration writer to open attac
Remote code execution on the Wazuh cluster master node is achievable by any attacker who controls a cluster worker node,
Path traversal in Wazuh's ip-customblock active response script allows low-privileged remote attackers to create or dele
The agent in OSSEC through 3.1.0 on Windows allows local users to gain NT AUTHORITY\SYSTEM access via Directory Traversa
Cluster key disclosure in Wazuh Manager versions 4.0.0 through 4.14.4 enables a two-stage privilege escalation: a low-pr
EUVD-2026-118278
NVD
CVE.org
EPSS
GitHub
Exploit-DB