Skip to main content
CVE-2026-26189VulnerabilityPublished

CVE-2026-26189: aquasecurity trivy-action · OS Command Injection

Affects aquasecurity trivy-actionSource CVE Database V5

0

Not known to be exploited · CVSS 5.9 Medium : upgrade to 0.34.0 when convenient.

Data as of 26 Oct 2026, 06:26 UTC

CVSS 3.1 base score
5.9Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
1.5% chance of exploitation in 30 days – higher than 74% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.34.0
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 19 Feb 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.

What to do

Upgrade aquasecurity trivy-action to 0.34.0.

Affected software

ProductAffectedFixed in
aquasecuritytrivy-actionAffected
  • >=0.31.0 <0.34.0
Fixed in
  • 0.34.0

AI-suggested

The primary mitigation is to upgrade aquasecurity/trivy-action to version 0.34.0 or later, which contains the patch that properly escapes shell inputs or removes the vulnerable sourcing mechanism. Organizations should audit all GitHub workflows using trivy-action to identify if any user-controlled or untrusted inputs are passed to the action inputs that are written to `trivy_envs.txt`. Restrict permissions on who can modify workflows to prevent unauthorized injection of malicious inputs. Avoid passing untrusted data into action inputs that influence environment variables or shell commands. Consider implementing additional runtime protections such as GitHub Actions runner isolation and secrets scanning. Review and harden CI/CD pipeline security policies to minimize exposure to supply chain threats. Monitoring for unusual runner activity and logs can help detect exploitation attempts. Finally, educate developers and DevOps teams about secure usage of GitHub Actions and environment variable handling.

Description

Trivy Action runs Trivy as GitHub action to scan a Docker container image for vulnerabilities. A command injection vulnerability exists in `aquasecurity/trivy-action` versions 0.31.0 through 0.33.1 due to improper handling of action inputs when exporting environment variables. The action writes `export VAR=<input>` lines to `trivy_envs.txt` based on user-supplied inputs and subsequently sources this file in `entrypoint.sh`. Because input values are written without appropriate shell escaping, attacker-controlled input containing shell metacharacters (e.g., `$(...)`, backticks, or other command substitution syntax) may be evaluated during the sourcing process. This can result in arbitrary command execution within the GitHub Actions runner context. Version 0.34.0 contains a patch for this issue. The vulnerability is exploitable when a consuming workflow passes attacker-controlled data into any action input that is written to `trivy_envs.txt`. Access to user input is required by the malicious actor. Workflows that do not pass attacker-controlled data into `trivy-action` inputs, workflows that upgrade to a patched version that properly escapes shell values or eliminates the `source ./trivy_envs.txt` pattern, and workflows where user input is not accessible are not affected.

References

Community reviews

Loading reviews…