Vulnerability · CVE-2023-51664
tj-actions/changed-files has Potential Actions command injection in output filenames (GHSL-2023-271)
Published Jan 2, 2024 · catalog updated Sep 10, 2026 · tj-actions/changed-files has Potential Actions
Check if you run it
No confirmed exploitation is on record for CVE-2023-51664. EPSS is 3.35%. Act only if a listed version of tj-actions/changed-files has Potential Actions is installed.
Gaps on this record
- The stored product name is a package slug. The name on this page is taken from the title (tj-actions/changed-files has Potential Actions).
- No version range is stored. A customer cannot check an installed version against this record.
- No vendor fix or required action is stored. Compare the linked advisory before you change production.
- Severity
- High7.3
- Known exploitation
- Not in CISA/VulnCheck KEV
- EPSS
- 3.35%
- Remediation
- Advisory link
- Affected products
- GitHub Actions tj-actions/changed-files
### Summary The workflow allows for command injection in changed filenames, allowing an attacker to execute arbitrary code and potentially leak secrets. ### Details The [ ](https://github.com/tj-actions/changed-files) action returns a list of files changed in a commit or pull request which provides an input [enabled by default](https://github.com/tj-actions/changed-files/blob/94549999469dbfa032becf298d95c87a14c34394/action.yml#L136), only escapes for JSON values. This could potentially allow filenames that contain special characters such as and \ run GITHUB_TOKEN pull_request push $(whoami).txt List all changed files safe_output (backtick), $, (), etc for bash environments. - A safe recommendation of using environment variables to store unsafe outputs. ### Resources * [Keeping your GitHub Actions and workflows secure Part 2: Untrusted input](https://securitylab.github.com/research/github-actions-untrusted-input/) * [Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)
Are you affected?
Enter the version you run. The result uses only the ranges stored on this record.
The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.
- GitHub Actions tj-actions/changed-files0 → 41
How to fix CVE-2023-51664
Recommended remediation
A patch or advisory reference is linked. Open the original publisher for availability by product version.
Official advisories
What to do
Three questions, each answered from this record only. Confirm the vendor advisory before you patch.
Should you patch?
No confirmed exploitation is on record for CVE-2023-51664. EPSS is 3.35%. Act only if a listed version of tj-actions/changed-files has Potential Actions is installed.
Which versions are affected?
Compare what you have installed with 0 → 41. Compare the installed version with the linked vendor advisory before you change production.
What should an analyst verify?
CWE-74: Injection; CWE-77: Command Injection. EPSS 3.35%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.
Code
The project this record applies to. Exploit listings stay in References.
Timeline
Detection, updates, and resolution for this record.
Jan 2, 2024 · GitHub Advisory Database
Detected
### Summary The workflow allows for command injection in changed filenames, allowing an attacker to execute arbitrary code and potentially leak secrets. ### Details The [ ](https://github.com/tj-actions/changed-files) action returns a list of files changed in a commit or pull request which provides an input [enabled by default](https://github.com/tj-actions/changed-files/blob/94549999469dbfa032bec
Sep 10, 2026 · GitHub Advisory Database
Fix available
tj-actions/changed-files fixed in 41
Sep 10, 2026 · GitHub Advisory Database
Fix available
tj-actions/changed-files fixed in 41
Sep 10, 2026 · GitHub Advisory Database
Updated
### Summary The workflow allows for command injection in changed filenames, allowing an attacker to execute arbitrary code and potentially leak secrets. ### Details The [ ](https://github.com/tj-actions/changed-files) action returns a list of files changed in a commit or pull request which provides an input [enabled by default](https://github.com/tj-actions/changed-files/blob/94549999469dbfa032bec
Sources
- CVE.orgVulnerability recordCVE-2023-51664
Official CVE identifier
cve.org - FIRST EPSSExploitation probabilityCVE-2023-51664
30-day exploitation probability 3.4%
first.org - GitHub Advisory DatabasePackage advisoryGHSA-mcph-m25j-8j63
GitHub Advisory Database record mirrored by OSV.
github.com - OpenSSF OSV / OSV ScannerPackage advisoryGHSA-mcph-m25j-8j63
tj-actions/changed-files has Potential Actions command injection in output filenames (GHSL-2023-271)
osv.dev
References
Freshness
Last verified in this catalog Oct 16, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.