Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
HighPublic exploit

Local Privilege Escalation in Zabbix Agent and Agent 2 on Windows via writable OpenSSL configuration path

IdentifiersCVE-2025-27237CWE-427· Uncontrolled Search Path Element

CVE-2025-27237 is a local privilege escalation vulnerability affecting Zabbix Agent and Zabbix Agent 2 on Windows. According to the provided content, the issue arises because the OpenSSL configuration file is loaded from a path that is writable by low-privileged users. This insecure search/load behavior allows a local attacker to maliciously modify the OpenSSL configuration and leverage it to inject a DLL. In the affected Windows deployment context, this can result in execution of attacker-controlled code in the security context of the Zabbix agent service, potentially elevating privileges to SYSTEM.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can allow a low-privileged local user to escalate privileges on a Windows host. Because the content explicitly references escalation to SYSTEM privileges, the likely impact is arbitrary code execution as NT AUTHORITY\SYSTEM in the context of the Zabbix Agent or Agent 2 service. This would enable full compromise of the affected host, including installation of persistent malware, credential theft, tampering with monitoring components, disabling defenses, and use of the system for lateral movement.

Mitigation

If you can’t patch tonight, do this now.

Until patched versions are deployed, restrict filesystem permissions so that unprivileged users cannot write to any directory or file path from which Zabbix Agent or Agent 2 may load the OpenSSL configuration on Windows. Review service-related directories, installation paths, and any environment-dependent OpenSSL configuration locations for weak ACLs. Monitor for unexpected modification of OpenSSL configuration files and suspicious DLL loads by the Zabbix agent processes. Where operationally feasible, reduce service privileges and apply application control to block unauthorized DLL execution.

Remediation

Patch, then assume compromise.

Apply the vendor patch or updated Zabbix Agent / Agent 2 version that corrects the OpenSSL configuration loading behavior on Windows. The provided content indicates a patch is available, but does not specify fixed versions, so the exact remediated release information is currently not available from the supplied material. As part of remediation, ensure the OpenSSL configuration file is loaded only from a secure, administrator-controlled location and that low-privileged users do not have write access to directories or files used by the service during OpenSSL initialization.
PUBLIC EXPLOITS

Exploits

1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos.

VALID 1 / 1 TOTALView more in app
CVE-2025-27237MaturityPoCVerified exploit

Repository is a PoC and analysis package for CVE-2025-27237 (Zabbix Agent/Agent2 for Windows local privilege escalation via OpenSSL configuration file hijacking / uncontrolled search path element). Structure & purpose: - CVE-2025-27237-analysis.md: technical write-up explaining that Zabbix Agent binaries embed hardcoded OpenSSL directories (OPENSSLDIR/ENGINESDIR/MODULESDIR). OPENSSLDIR points to a path under C:\vcpkg\... that a low-privileged user can create/populate, enabling hijack of openssl.cnf. - CVE-2025-27237-PoC.md: step-by-step exploitation guide: create the hardcoded directory tree, drop a malicious openssl.cnf that loads a provider module (DLL), place the DLL, then trigger by restarting/starting the agent. - extract_openssl_paths.py: helper tool to analyze Zabbix binaries locally using `strings` and optionally `radare2` to extract OPENSSLDIR/ENGINESDIR/MODULESDIR and OpenSSL version; also checks for relevant OpenSSL symbols (e.g., CONF_modules_load, ENGINE_by_id, dynamic_path) and outputs JSON. - poc.c / poc2.c / poc3.c: Windows DLL payload examples implementing DllMain and exporting OSSL_provider_init (required for OpenSSL provider loading). Payload actions are benign PoC indicators: MessageBox popup and/or writing C:\EXPLOITED.txt. Exploit capability: - Local attacker plants an OpenSSL configuration file at the hardcoded OPENSSLDIR (not under Program Files) and uses the OpenSSL provider mechanism to load an arbitrary DLL. When Zabbix Agent runs as a Windows service (commonly SYSTEM) and initializes TLS/OpenSSL, it parses the attacker-controlled openssl.cnf and loads the DLL, yielding code execution as the service account (privilege escalation). No network exploitation is implemented; triggering is via local filesystem manipulation plus service restart/agent start with TLS enabled.

HackingLZDisclosed Jan 26, 2026pythonclocal
What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity13

Community discussion across Reddit, Mastodon, and other social sources.