CVE-2023-51664
CRITICAL 9.8CVSS 3.1tj-actions/changed-files has Potential Actions command injection in output filenames (GHSL-2023-271)
tj-actions/changed-files is a Github action to retrieve all files and directories. Prior to 41.0.0, the tj-actions/changed-files workflow allows for command injection in changed filenames, allowing an attacker to execute arbitrary code and potentially leak secrets. This issue may lead to arbitrary command execution in the GitHub Runner. This vulnerability has been addressed in version 41.0.0. Users are advised to upgrade.
- Published
- 27 Dec 2023
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-74CWE-77
- Also known as
- GHSA-mcph-m25j-8j63
- Sources
- NVDJSONOSV GHSA-mcph-m25j-8j63JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | tj-actions | changed-filescpe:2.3:a:tj-actions:changed-files:*:*:*:*:*:*:*:* |
< 41.0.0 | 41.0.0 |
| OSV | GitHub Actions | tj-actions/changed-files | < 41 | 41 |
References
- https://github.com/tj-actions/changed-files/commit/0102c07446a3cad972f4afcbd0ee4dbc4b6d2d1b · Patch, WEB
- https://github.com/tj-actions/changed-files/commit/716b1e13042866565e00e85fd4ec490e186c4a2f · Patch, WEB
- https://github.com/tj-actions/changed-files/commit/ff2f6e6b91913a7be42be1b5917330fe442f2ede · Patch, WEB
- https://github.com/tj-actions/changed-files/security/advisories/GHSA-mcph-m25j-8j63 · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-51664 · ADVISORY
- https://github.com/tj-actions/changed-files · PACKAGE
History
- 25 Nov 2026 20:37 UTC · NVD: first stored (published 27 Dec 2023)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 2 Jan 2024)