{"answers":{"affected":"1 open source package ship an affected version, including fish-shop/syntax-check. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-42482 in the wild and no public exploit code.","fix":"Upgrade fish-shop/syntax-check to 1.6.12 or later.","what":"CVE-2024-42482 is a medium-severity command injection vulnerability in fish-shop syntax-check, published on 12 Aug 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-42482 and fix it if it is affected.\n\nWhat it is: CVE-2024-42482 is a medium-severity command injection vulnerability in fish-shop syntax-check, published on 12 Aug 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-42482 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- fish-shop/syntax-check (GitHub Actions): affected all versions; fixed in 1.6.12\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-2024-42482/ (Markdown: https://insights.sbomify.com/CVE-2024-42482/index.md)","id":"CVE-2024-42482","markdown":"https://insights.sbomify.com/CVE-2024-42482/index.md","name":"CVE-2024-42482","record":{"aliases":["GHSA-xj87-mqvh-88w2"],"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":"none","summary":"Attackers can inject arbitrary commands via the pattern input in the fish-shop syntax-check GitHub Action, potentially exposing sensitive workflow data.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"syntax-check","vendor":"fish-shop"}],"cvss":{"score":4.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-140","name":"Improper Neutralization of Delimiters"}],"description":"fish-shop/syntax-check is a GitHub action for syntax checking fish shell files. Improper neutralization of delimiters in the `pattern` input (specifically the command separator `;` and command substitution characters `(` and `)`) mean that arbitrary command injection is possible by modification of the input value used in a workflow. This has the potential for exposure or exfiltration of sensitive information from the workflow runner, such as might be achieved by sending environment variables to an external entity. It is recommended that users update to the patched version `v1.6.12` or the latest release version `v2.0.0`, however remediation may be possible through careful control of workflows and the `pattern` input value used by this action.","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":"fish-shop/syntax-check Improper Neutralization of Delimiters","id":"CVE-2024-42482","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"GitHub Actions","product":null,"products":[],"type":"command_injection","year":"2024"},"n_packages":1,"n_references":3,"next":{"headline":"ESP-NOW Replay Attacks Vulnerability","id":"CVE-2024-42483"},"packages":[{"ecosystem":"GitHub Actions","fixed":["1.6.12"],"introduced":["0"],"last_affected":[],"package":"fish-shop/syntax-check","purl":null,"source":"GHSA-xj87-mqvh-88w2"}],"prev":{"headline":"Complete crash of host system due to calculateDirectorySize in skyportd","id":"CVE-2024-42481"},"products":["syntax-check"],"published":"2024-08-12","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":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-13","vendors":["fish-shop"]},"summary":"Attackers can inject arbitrary commands via the pattern input in the fish-shop syntax-check GitHub Action, potentially exposing sensitive workflow data.","url":"https://insights.sbomify.com/CVE-2024-42482/"}