# CVE-2023-52137: GitHub Action tj-actions/verify-changed-files is vulnerable to command injection in output filenames

- Severity: High 7.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.62%, higher than 85% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-12-29T17:08:49.356Z
- Modified: 2026-06-17T06:42:09.553Z
- Also known as: GHSA-ghm2-rq8q-wrhc
- Weaknesses: CWE-20, CWE-77
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- tj-actions verify-changed-files: < 17.0.0; before 17.0.0
- tj-actions/verify-changed-files (GitHub Actions): before 17

## Every score

- GitHub_M: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L`
- GitHub: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/tj-actions/verify-changed-files/security/advisories/GHSA-ghm2-rq8q-wrhc> (exploit, mitigation, third-party-advisory, web)
- <https://github.com/tj-actions/verify-changed-files/commit/498d3f316f501aa72485060e8c96fde7b2014f12> (patch, web)
- <https://github.com/tj-actions/verify-changed-files/commit/592e305da041c09a009afa4a43c97d889bed65c3> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-52137> (advisory)
- <https://github.com/tj-actions/verify-changed-files> (package)

## Sources

- CVE List: [CVE-2023-52137](https://www.cve.org/CVERecord?id=CVE-2023-52137), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-ghm2-rq8q-wrhc](https://github.com/advisories/GHSA-ghm2-rq8q-wrhc), CC-BY-4.0, modified 2024-01-02
- NVD: [CVE-2023-52137](https://nvd.nist.gov/vuln/detail/CVE-2023-52137), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-52137 · Whole record: https://cve.day/CVE-2023-52137.json · Rebuilt by cve.day 2026-11-25T22:58:31.762Z
