CVE-2026-26189
Trivy Action has a script injection via sourced env file in composite action
Mitigation
- Upgrade trivy-action to 0.34.0 or later.
Who should check
- Anyone running aquasecurity trivy-action >= 0.31.0, < 0.34.0
Vulnerability facts
- Affected
- aquasecurity trivy-action >= 0.31.0, < 0.34.0
- Fixed in
- aquasecurity trivy-action 0.34.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 5.9 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: High
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: None
- EPSS
- 2.41% chance of exploitation in 30 days (percentile 85, 2026-11-26)
- CWE
- CWE-78
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| aquasecurity trivy-action | >= 0.31.0, < 0.34.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-26189. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-26189.md Affected: aquasecurity trivy-action >= 0.31.0, < 0.34.0 Fixed in: aquasecurity trivy-action 0.34.0 Steps: 1. Search this machine and project for aquasecurity trivy-action: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2026-26189 being exploited?
There is no confirmed exploitation: CVE-2026-26189 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.41% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-26189?
Medium: CVSS 5.9 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2026-26189?
aquasecurity trivy-action >= 0.31.0, < 0.34.0.
Is there a fix for CVE-2026-26189?
Yes. Fixed in aquasecurity trivy-action 0.34.0. Upgrade trivy-action to 0.34.0 or later.
How do I check if I'm affected by CVE-2026-26189?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.