
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-15612 is an insecure transport vulnerability in Wazuh provisioning scripts and Dockerfiles where curl is invoked with the -k/--insecure flag, disabling SSL/TLS certificate validation. This flaw enables attackers with network access to perform man-in-the-middle (MITM) attacks to intercept and modify downloaded dependencies or source code during the build process, potentially leading to remote code execution (RCE) and supply chain compromise. It affects Wazuh versions 4.1.3 through 4.13.x (fixed in 4.14.0) and was published on March 27, 2026, with the advisory originally authored December 4, 2025. The vulnerability carries a CVSS v3.1 base score of 8.1 (High) per NVD, though the GitHub advisory rates it Moderate (4.8) (GitHub Advisory).
The root cause is improper certificate validation (CWE-295) combined with inclusion of functionality from an untrusted control sphere (CWE-829). Multiple files in the Wazuh repository invoke curl with the -k or --insecure flag, including packages/debs/amd64/agent/Dockerfile, packages/aix/generate_wazuh_packages.sh, packages/hp-ux/generate_wazuh_packages.sh, and packages/rpms/i386/legacy/Dockerfile. These scripts fetch critical build dependencies and source code — such as Perl tarballs, GCC/CMake toolchains, CA certificate bundles, and the Wazuh source archive itself — over HTTPS without validating the server's TLS certificate. An attacker positioned on the build network (e.g., via ARP spoofing or a transparent proxy) can intercept these requests and serve malicious content, which the build system will consume without any validation warning (GitHub Advisory).
Successful exploitation allows an attacker to inject arbitrary code into the Wazuh build pipeline, resulting in full compromise of confidentiality, integrity, and availability of the built packages and the systems that install them. Because the attack targets the build process itself, all downstream users of packages produced from these scripts are potentially affected — not just the build host. The supply chain impact is particularly severe: malicious code injected into a CA certificate bundle or source archive could persist in distributed Wazuh agent packages, enabling persistent access across all deployments (GitHub Advisory).
arpspoof or ettercap) or by setting up a transparent proxy (e.g., mitmproxy).https://curl.se/ca/cacert.pem, http://www.cpan.org/src/5.0/perl-5.10.1.tar.gz, http://packages.wazuh.com/utils/gcc/gcc_9.4_HPUX_build.tar.gz, or https://github.com/wazuh/wazuh/archive/${wazuh_branch}.zip.curl is invoked with -k, no certificate validation occurs and the build system accepts the response.-k usage).cacert.pem, perl-5.10.1.tar.gz, wazuh.zip); checksum mismatches on build dependencies compared to known-good hashes; presence of unexpected binaries or scripts in the build output.curl/wget to attacker-controlled hosts); unusual network connections from the build container or host post-build (GitHub Advisory).Upgrade Wazuh to version 4.14.0 or later, which removes the -k/--insecure flags from all curl invocations in provisioning scripts and Dockerfiles. As an interim workaround, restrict network access during the build process to trusted, controlled environments and isolate build networks from untrusted segments. Additionally, implement cryptographic verification (e.g., checksum validation) of all downloaded artifacts, use package managers with built-in integrity checks, and consider certificate pinning for critical downloads. Monitor for unexpected network connections during provisioning (GitHub Advisory).
The vulnerability was discovered by automated tooling from Socket and reported by researcher @JLLeitschuh, credited in the official Wazuh GitHub advisory. The advisory was published by Wazuh maintainer vikman90 and linked to remediation pull requests #32046 and #32047. No significant broader media coverage or notable community debate has been identified beyond the advisory itself (GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."