
CVE 2025 27237 Zabbix LPE proof of concept.
Local privilege escalation vulnerability in Zabbix Agent/Agent2 for Windows via OpenSSL configuration file hijacking.
| Field | Value |
|---|---|
| CVE ID | CVE-2025-27237 |
| CVSS v4.0 | 7.3 (HIGH) |
| CWE | CWE-427: Uncontrolled Search Path Element |
| Type | Local Privilege Escalation |
| Vendor | Zabbix |
Zabbix Agent for Windows loads OpenSSL configuration from a hardcoded path (C:\vcpkg\...) that is writable by low-privileged users. An attacker can plant a malicious openssl.cnf that loads an arbitrary DLL with SYSTEM privileges when the Zabbix Agent service restarts.
| Branch |
|---|
.
├── CVE-2025-27237-analysis.md # Detailed technical analysis
├── CVE-2025-27237-PoC.md # Proof of concept documentation
├── extract_openssl_paths.py # Binary analysis tool
├── poc.c # PoC DLL source (MessageBox)
├── poc2.c # PoC DLL variant (file write)
└── poc3.c # PoC DLL variant
Extract hardcoded OpenSSL paths from Zabbix Agent binaries to determine vulnerability status:
python extract_openssl_paths.py zabbix_agent2.exe
The script uses strings and optionally radare2 to find:
OPENSSLDIR - Location of openssl.cnfENGINESDIR - Location for OpenSSL enginesMODULESDIR - Location for OpenSSL modulesFor 32-bit (i386) Zabbix Agent:
i686-w64-mingw32-gcc -shared -o poc.dll poc.c -luser32
For 64-bit (amd64) Zabbix Agent:
x86_64-w64-mingw32-gcc -shared -o poc.dll poc.c -luser32
Vulnerable versions of Zabbix Agent can be downloaded from the official archive: https://www.zabbix.com/download_agents
TLSConnect=cert or TLSAccept=cert)C:\ root (default Windows permissions)Check for exploitation attempts:
Test-Path "C:\vcpkg\downloads\tools\msys2\*\etc\ssl\openssl.cnf"
Upgrade to patched versions:
| Affected |
|---|
| Fixed |
|---|
| 6.0 LTS | 6.0.0 - 6.0.40 | 6.0.41 |
| 7.0 | 7.0.0 - 7.0.17 | 7.0.18 |
| 7.2 | 7.2.0 - 7.2.11 | 7.2.12 |
| 7.4 | 7.4.0 - 7.4.1 | 7.4.2 |