{"answers":{"affected":"1 open source package ship an affected version, including tj-actions/verify-changed-files. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-52137 in the wild and no public exploit code.","fix":"Upgrade tj-actions/verify-changed-files to 17 or later.","what":"CVE-2023-52137 is a high-severity command injection vulnerability in tj-actions verify-changed-files, published on 29 Dec 2023. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-52137 and fix it if it is affected.\n\nWhat it is: CVE-2023-52137 is a high-severity command injection vulnerability in tj-actions verify-changed-files, published on 29 Dec 2023. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-52137 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- tj-actions/verify-changed-files (GitHub Actions): affected all versions; fixed in 17\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-52137/ (Markdown: https://insights.sbomify.com/CVE-2023-52137/index.md)","id":"CVE-2023-52137","markdown":"https://insights.sbomify.com/CVE-2023-52137/index.md","name":"CVE-2023-52137","record":{"aliases":["GHSA-ghm2-rq8q-wrhc"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"GitHub Actions","requires_auth":"low_privilege","summary":"Attackers can execute arbitrary code and steal secrets via command injection in changed filenames within the verify-changed-files GitHub Action.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"verify-changed-files","vendor":"tj-actions"}],"cvss":{"score":7.7,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"},{"id":"CWE-20","name":"Improper Input Validation"}],"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`.\n\nThis 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.","ecosystems":["GitHub Actions"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"GitHub Action tj-actions/verify-changed-files is vulnerable to command injection in output filenames","id":"CVE-2023-52137","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"GitHub Actions","product":null,"products":[],"type":"command_injection","year":"2023"},"n_packages":1,"n_references":3,"next":{"headline":"Path traversal via crafted cpio archives in Engrampa archivers","id":"CVE-2023-52138"},"packages":[{"ecosystem":"GitHub Actions","fixed":["17"],"introduced":["0"],"last_affected":[],"package":"tj-actions/verify-changed-files","purl":null,"source":"GHSA-ghm2-rq8q-wrhc"}],"prev":{"headline":"WordPress Custom Twitter Feeds (Tweets Widget) Plugin \u003c= 2.1.2 is vulnerable to Cross Site Request Forgery (CSRF)","id":"CVE-2023-52136"},"products":["verify-changed-files"],"published":"2023-12-29","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-02","vendors":["tj-actions"]},"summary":"Attackers can execute arbitrary code and steal secrets via command injection in changed filenames within the verify-changed-files GitHub Action.","url":"https://insights.sbomify.com/CVE-2023-52137/"}