Skip to content
OpenAdvisories
High · 7.8 CVE-2024-35177 EUVD-2024-35565GHSA-pmr2-2r83-h3cvGO-2025-3444

Improper Access Control in wazuh-agent

Published Feb 3, 2025 · Updated Feb 4, 2025 · Assigned by GitHub_M

Description

Wazuh is a free and open source platform used for threat prevention, detection, and response. It is capable of protecting workloads across on-premises, virtualized, containerized, and cloud-based environments. The wazuh-agent for Windows is vulnerable to a Local Privilege Escalation vulnerability due to improper ACL of the non-default installation directory. A local malicious user could potentially exploit this vulnerability by placing one of the many DLL that are loaded and not present on the system in the installation folder of the agent OR by replacing the service executable binary itself with a malicious one. The root cause is an improper ACL applied on the installation folder when a non-default installation path is specified (e.g,: C:\wazuh). Many DLLs are loaded from the installation folder and by creating a malicious DLLs that exports the functions of a legit one (and that is not found on the system where the agent is installed, such as rsync.dll) it is possible to escalate privileges from a low-privileged user and obtain code execution under the context of NT AUTHORITY\SYSTEM. This issue has been addressed in version 4.9.0 and all users are advised to upgrade. There are no known workarounds for this vulnerability.

Affected products

VendorProductAffectedFixed
wazuh wazuh >= 3.0.0, < 4.9.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
SLES 15 SP6 govulncheck-vulndb 0.0.20250207T224745-150000.1.32.1 SUSE-SU-2025:0429-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed govulncheck-vulndb 0.0.20250204T220613-1.1 openSUSE-SU-2025:14732-1
openSUSE Leap 15.6 govulncheck-vulndb 0.0.20250207T224745-150000.1.32.1 SUSE-SU-2025:0429-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/wazuh/wazuh >= 3.0.0+incompatible, < 4.9.0+incompatible 4.9.0+incompatible GO-2025-3444

Advisories 2

References