# CVE-2023-51664: tj-actions/changed-files command injection in output filenames

- Severity: High 7.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N`
- 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): 3.35%, higher than 89% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-12-27T16:58:31.908Z
- Modified: 2026-09-10T03:50:09.380Z
- Also known as: GHSA-mcph-m25j-8j63
- Weaknesses: CWE-74, CWE-77
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- tj-actions changed-files: < 41.0.0; before 41.0.0
- tj-actions/changed-files (GitHub Actions): before 41

## Every score

- GitHub_M: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/tj-actions/changed-files/security/advisories/GHSA-mcph-m25j-8j63> (exploit, vendor-advisory, web)
- <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://nvd.nist.gov/vuln/detail/CVE-2023-51664> (advisory)
- <https://github.com/tj-actions/changed-files> (package)

## Sources

- CVE List: [CVE-2023-51664](https://www.cve.org/CVERecord?id=CVE-2023-51664), CVE Terms of Use, modified 2024-09-25
- GitHub Advisory Database: [GHSA-mcph-m25j-8j63](https://github.com/advisories/GHSA-mcph-m25j-8j63), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-51664](https://nvd.nist.gov/vuln/detail/CVE-2023-51664), Public domain, modified 2026-06-17

---

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