Vulnerability Details CVE-2023-52137
The [`tj-actions/verify-changed-files`](https://github.com/tj-actions/verify-changed-files) action allows for command injection in changed filenames, allowing an attacker to execute arbitrary code and potentially leak secrets. The [`verify-changed-files`](https://github.com/tj-actions/verify-changed-files) workflow returns the list of files changed within a workflow execution. This could potentially allow filenames that contain special characters such as `;` which can be used by an attacker to take over the [GitHub Runner](https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners) if the output value is used in a raw fashion (thus being directly replaced before execution) inside a `run` block. By running custom commands, an attacker may be able to steal secrets such as `GITHUB_TOKEN` if triggered on other events than `pull_request`.
This has been patched in versions [17](https://github.com/tj-actions/verify-changed-files/releases/tag/v17) and [17.0.0](https://github.com/tj-actions/verify-changed-files/releases/tag/v17.0.0) by enabling `safe_output` by default and returning filename paths escaping special characters for bash environments.
Exploit prediction scoring system (EPSS) score
EPSS Score 0.004
EPSS Ranking 56.5%
CVSS Severity
CVSS v3 Score 7.7
Products affected by CVE-2023-52137
-
cpe:2.3:a:tj-actions:verify-changed-files:10
-
cpe:2.3:a:tj-actions:verify-changed-files:10.1
-
cpe:2.3:a:tj-actions:verify-changed-files:11
-
cpe:2.3:a:tj-actions:verify-changed-files:11.1
-
cpe:2.3:a:tj-actions:verify-changed-files:12
-
cpe:2.3:a:tj-actions:verify-changed-files:12.0
-
cpe:2.3:a:tj-actions:verify-changed-files:13
-
cpe:2.3:a:tj-actions:verify-changed-files:13.1
-
cpe:2.3:a:tj-actions:verify-changed-files:13.2.0
-
cpe:2.3:a:tj-actions:verify-changed-files:14
-
cpe:2.3:a:tj-actions:verify-changed-files:14.0.0
-
cpe:2.3:a:tj-actions:verify-changed-files:14.0.1
-
cpe:2.3:a:tj-actions:verify-changed-files:14.0.2
-
cpe:2.3:a:tj-actions:verify-changed-files:15
-
cpe:2.3:a:tj-actions:verify-changed-files:15.0.0
-
cpe:2.3:a:tj-actions:verify-changed-files:15.0.1
-
cpe:2.3:a:tj-actions:verify-changed-files:15.0.2
-
cpe:2.3:a:tj-actions:verify-changed-files:16
-
cpe:2.3:a:tj-actions:verify-changed-files:16.0.0
-
cpe:2.3:a:tj-actions:verify-changed-files:16.0.1
-
cpe:2.3:a:tj-actions:verify-changed-files:16.1.0
-
cpe:2.3:a:tj-actions:verify-changed-files:16.1.1
-
cpe:2.3:a:tj-actions:verify-changed-files:17
-
cpe:2.3:a:tj-actions:verify-changed-files:4
-
cpe:2.3:a:tj-actions:verify-changed-files:5
-
cpe:2.3:a:tj-actions:verify-changed-files:5.1
-
cpe:2.3:a:tj-actions:verify-changed-files:5.2
-
cpe:2.3:a:tj-actions:verify-changed-files:5.3
-
cpe:2.3:a:tj-actions:verify-changed-files:5.4
-
cpe:2.3:a:tj-actions:verify-changed-files:5.5
-
cpe:2.3:a:tj-actions:verify-changed-files:5.6
-
cpe:2.3:a:tj-actions:verify-changed-files:5.7
-
cpe:2.3:a:tj-actions:verify-changed-files:6
-
cpe:2.3:a:tj-actions:verify-changed-files:6.1
-
cpe:2.3:a:tj-actions:verify-changed-files:6.2
-
cpe:2.3:a:tj-actions:verify-changed-files:7
-
cpe:2.3:a:tj-actions:verify-changed-files:7.1
-
cpe:2.3:a:tj-actions:verify-changed-files:7.2
-
cpe:2.3:a:tj-actions:verify-changed-files:8
-
cpe:2.3:a:tj-actions:verify-changed-files:8.1
-
cpe:2.3:a:tj-actions:verify-changed-files:8.2
-
cpe:2.3:a:tj-actions:verify-changed-files:8.3
-
cpe:2.3:a:tj-actions:verify-changed-files:8.4
-
cpe:2.3:a:tj-actions:verify-changed-files:8.5
-
cpe:2.3:a:tj-actions:verify-changed-files:8.6
-
cpe:2.3:a:tj-actions:verify-changed-files:8.7
-
cpe:2.3:a:tj-actions:verify-changed-files:8.8
-
cpe:2.3:a:tj-actions:verify-changed-files:9
-
cpe:2.3:a:tj-actions:verify-changed-files:9.1
-
cpe:2.3:a:tj-actions:verify-changed-files:9.2