Horizon Alert
Summary of the vulnerability and why it matters
This advisory highlights a critical vulnerability within Wazuh's GitHub Actions workflows that could allow unauthorized command execution. The issue stems from how version information is processed, potentially enabling attackers to compromise systems, especially those using self-hosted runners. Verifying the scope and impact of this vulnerability within your environment is the primary concern.
- Unsafe processing of version files allows command execution.
- Key concern: Confirming relevance and exposure.
- Mitigate potential risks by verifying system exposure.
Attack Path
How an attacker could exploit the issue
Attackers can exploit this vulnerability by submitting a pull request containing a malicious `VERSION.json` file, which leverages a weakness in GitHub Actions used by Wazuh workflows. This allows them to inject commands through environment variables, potentially leading to unauthorized command execution and the theft of sensitive information.
- Requires submitting a pull request.
- Triggered by crafted JSON file.
- Risk of command execution and data theft.
Live Threat
Current exploitation, exposure, and threat context
Attackers could execute arbitrary commands on self-hosted runners by submitting pull requests with specially crafted `VERSION.json` files. This could lead to the exfiltration of sensitive information, such as secrets, when supported by the advisory and when these workflows are processed.
- System secrets and credentials.
- Crafted pull requests and workflow execution.
- Unauthorized access and data exfiltration.
Operational Fix
Recommended remediation, mitigation, and detection steps
Wazuh workflows are susceptible to shell injection via crafted `VERSION.json` files in pull requests, potentially leading to arbitrary command execution and secret exfiltration on self-hosted runners. The first practical step is to identify all instances of the affected Wazuh workflows, confirm their exposure and criticality, and locate the responsible owner for remediation planning.
- Application and platform teams own resolution.
- Verify self-hosted runner exposure and workflow usage.
- Coordinate vendor engagement and plan maintenance.