{"schemaVersion":3,"id":"CVE-2026-26189","aliases":[],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-02-19T19:07:49.631Z","modified":"2026-02-19T21:23:33.970Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.1,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02345,"percentile":0.83416,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.9959999999999999,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.01349},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02099,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02099,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02099,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02099,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02099,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02099,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02099,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02099,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02099,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02099,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02099,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02099,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02099,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02099,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02345,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02345,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02345,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02345,"percentile":0.83416}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02099,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02099,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02099,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02099,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02099,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02099,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02099,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02099,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02099,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02099,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02099,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02099,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02099,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02099,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02345,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02345,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02345,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02345,"percentile":0.83416}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","description":"The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/78.html"}],"affected":[{"vendor":"aquasec","product":"trivy_action","name":"trivy action","label":"trivy_action","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.31.0, < 0.34.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.31.0, < 0.34.1","eol":null,"hubHref":"/vendor/aquasec/trivy_action"},{"vendor":"aquasecurity","product":"trivy-action","name":"trivy-action","label":"trivy-action","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.31.0, < 0.34.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.31.0, < 0.34.0","eol":null,"hubHref":"/vendor/aquasecurity/trivy-action"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/aquasecurity/trivy-action/security/advisories/GHSA-9p44-j4g5-cfx5","label":"github.com/aquasecurity/trivy-action/security/advisories/GHSA-9p44-j4g5-cfx5","hostname":"github.com","tags":["X Refsource CONFIRM","Vendor Advisory"]},{"url":"https://github.com/aquasecurity/trivy-action/commit/7aca5acc9500b463826cc47a47a65ad7d404b045","label":"github.com/aquasecurity/trivy-action/commit/7aca5acc9500b463826cc47a47a65ad7d404b045","hostname":"github.com","tags":["X Refsource MISC","Patch"]},{"url":"https://github.com/aquasecurity/trivy-action/commit/bc61dc55704e2d5704760f3cdab0d09acf16e4ca","label":"github.com/aquasecurity/trivy-action/commit/bc61dc55704e2d5704760f3cdab0d09acf16e4ca","hostname":"github.com","tags":["X Refsource MISC","Patch"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-02-19T19:07:49.631Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-02-19T21:23:33.970Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":33,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T07:53:40.539Z","stale":false,"partial":false}}