CVE-2024-42482 is a medium-severity (CVSS 4.8) CWE-140 vulnerability in fish-shop/syntax-check. A fix is available for fish-shop/syntax-check — see the affected versions and patch details below.
fish-shop/syntax-check Improper Neutralization of Delimiters
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2024-42482.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
fish-shop/syntax-checkReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects GitHub Actions packages — download data is not available via public APIs for these ecosystems.
Description
Impact
Improper neutralisation 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.
Patches
As of this writing, the issue has been patched for versions in the v1.x.x release series in release v1.6.12 (also tagged as v1.6 and v1). The latest available release v2.0.0 also includes a corresponding patch (also tagged as v2.0 and v2).
Users should upgrade to at least the patched version v1.6.12 or preferably the latest available version v2.0.0. Workflows that use the action ref v1 will automatically receive the patched version v1.6.12 in future workflow runs.
Patch summary:
| Release series | Patched tags | Patched commit hashes |
|---|---|---|
1.x.x | v1.6.12, v1.6, v1 | 91e6817c48ad475542fe4e78139029b036a53b03 |
2.x.x | v2.0.0, v2.0, v2 | c2cb11395e21119ff8d6e7ea050430ee7d6f49ca |
Workarounds
Is it 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.
References
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦GitHub Actions | fish-shop/syntax-check | all versions | 1.6.12 |
Affected Products
syntax-checkfish-shopDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for fish-shop/syntax-check, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update fish-shop/syntax-check to 1.6.12 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2024-42482 is resolved across your whole dependency graph.
Workarounds
Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.
Frequently Asked Questions
Is CVE-2024-42482 in your dependencies?
Find it across GitHub Actions, including transitive dependencies.