CVE-2026-67308

Wazuh GitHub Actions Shell Injection via Fork Pull Request

Published Aug 1, 2026 CVSS 4.0 · 9.3 Critical EPSS < 1% KEV · Not listed
Description
Wazuh workflows before 44bf114 contain a shell injection vulnerability in GitHub Actions that allows attackers to execute arbitrary commands by submitting pull requests with crafted VERSION.json files. Attackers can inject shell metacharacters into environment variables that are directly interpolated into run steps, enabling command execution and exfiltration of secrets including GITHUB_TOKEN and AWS credentials on self-hosted runners.

Analysis

AI-generated

Technical impact

The vulnerability allows an attacker to inject shell metacharacters into environment variables that are directly interpolated into GitHub Actions run steps within the Wazuh CI pipeline. This flaw permits execution of arbitrary commands when a crafted pull request is merged, potentially exposing secrets such as GITHUB_TOKEN and AWS credentials. The impact is the compromise of confidentiality and integrity of the continuous integration environment, with the attacker able to execute code on self‑hosted runners.

Affected Systems

Wazuh product. All releases before commit 44bf114 in the Wazuh repository are impacted; the vulnerability exists in the workflow configuration of those versions.

Risk and Exploitability

The CVSS score of 9.3 indicates critical severity. EPSS score of 0.00561 indicates a very low exploitation probability. The vulnerability is not listed in the CISA KEV catalog. An attacker who can submit a pull request with a crafted VERSION.json file that injects malicious shell commands into environment variables will trigger the vulnerable workflow and execute arbitrary commands on self‑hosted runners. The likely attack vector is via pull request submission; based on the description, it is inferred that the attacker would need write access to a repository or a fork that triggers the action.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Wazuh to a commit after 44bf114 or to a release that includes the fix; the advisory recommends updating to the latest code.
  • Restrict the use of self‑hosted runners and limit the permissions of the GITHUB_TOKEN by adding explicit permissions restrictions or moving to a machine token with least privileges.
  • Sanitize and harden GitHub Actions workflow files: remove direct interpolation of untrusted environment variables and enforce strict on‑branch protection rules to prevent malicious pull requests from triggering actions.

Generated by OpenCVE AI on August 4, 2026 at 11:16 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 10, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N'}

cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:N'}

Type Values Removed Values Added
Description Wazuh workflows before 44bf114 contain a shell injection vulnerability in GitHub Actions that allows attackers to execute arbitrary commands by submitting pull requests with crafted VERSION.json files. Attackers can inject shell metacharacters into environment variables that are directly interpolated into run steps, enabling command execution and exfiltration of secrets including GITHUB_TOKEN and AWS credentials on self-hosted runners.
Title Wazuh GitHub Actions Shell Injection via Fork Pull Request
First Time appeared Wazuh
Wazuh wazuh
Weaknesses CWE-78
CPEs cpe:2.3:a:wazuh:wazuh:*:*:*:*:*:*:*:*
Vendors & Products Wazuh
Wazuh wazuh
References
Metrics cvssV3_1

{'score': 10, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Aug 3, 2026, 7:35 PM
Reserved
Jul 29, 2026, 1:06 PM
Status
Awaiting Analysis
Published
Aug 1, 2026, 1:17 PM
Modified
Sep 9, 2026, 8:26 PM