Skip to main content

Wazuh Agent EUVDEUVD-2026-118278

| CVE-2026-112335 MEDIUM
Stack-based Buffer Overflow (CWE-121)
2026-11-06 VulnCheck
6.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Write crafted snort-full log to monitored path
  2. Delivery
    Trigger f_msg_size integer underflow via oversized classification line
  3. Exploit
    Unbounded strncat overwrites 65,280-byte stack buffer
  4. Execution
    Overwrite SEH handler pointer with attacker-controlled bytes
  5. Impact
    Execute 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

wazuh 1.0.0 <4.14.9

Affected Packages

euvd wazuh fix: 4.14.9

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

Vendor (VulnCheck) PRIMARY 6.8 MEDIUM
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
vuln.today AI 7.8 HIGH

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

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 06, 2026 - 16:02 EUVD
CVE Published
Nov 06, 2026 - 15:00 cve.org
MEDIUM 6.8

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

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Medium
popular open-source SIEM/EDR with significant enterprise deployment
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

More in Wazuh

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2026-30893 CRITICAL POC
9.9 Apr 29

Authenticated cluster peers in Wazuh Manager 4.4.0 through 4.14.3 can write arbitrary files outside the cluster synchron

CVE-2021-44079 CRITICAL POC
9.8 Nov 22

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

CVE-2026-48024 CRITICAL POC
9.1 Aug 19

Path-traversal-driven root code execution affects the Wazuh security platform's cluster synchronization layer in version

CVE-2026-48162 CRITICAL POC
9.1 Aug 19

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

CVE-2026-61800 CRITICAL POC
9.1 Aug 27

Arbitrary file write leading to root remote code execution affects Wazuh worker nodes in clustered deployments running v

CVE-2026-25769 CRITICAL POC
9.1 Mar 17

A critical deserialization vulnerability in Wazuh's cluster mode allows attackers with access to any worker node to achi

CVE-2025-30201 CRITICAL POC
9.1 Nov 21

Wazuh Agent before 4.13.0 on Windows can be made by an authenticated, high-privileged configuration writer to open attac

CVE-2026-44901 HIGH POC
8.4 Aug 19

Remote code execution on the Wazuh cluster master node is achievable by any attacker who controls a cluster worker node,

CVE-2026-54083 HIGH POC
8.1 Aug 27

Path traversal in Wazuh's ip-customblock active response script allows low-privileged remote attackers to create or dele

CVE-2018-19666 HIGH POC
7.8 Nov 29

The agent in OSSEC through 3.1.0 on Windows allows local users to gain NT AUTHORITY\SYSTEM access via Directory Traversa

CVE-2026-44252 HIGH POC
7.7 Aug 19

Cluster key disclosure in Wazuh Manager versions 4.0.0 through 4.14.4 enables a two-stage privilege escalation: a low-pr

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy