CVE-2024-48908
lychee link checking action affected by arbitrary code injection in composite action
Impact
### Summary There is a potential attack of arbitrary code injection vulnerability in `lychee-setup` of the composite action at *action.yml*. ### Details The GitHub Action variable `inputs.lycheeVersion` can be used to execute arbitrary code in the context of the action. ### PoC ```yaml - uses: lycheeverse/lychee@v2 with: lycheeVersion: $(printenv >> $GITHUB_STEP_SUMMARY && echo "v0.16.1") ``` The previous example will just print all the environment variables to the summary of the workflow, but an attacker could potentially use this vector to compromise the security of the target repository, even passing unnotice because the action will run normally. ### Impact Low
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| actions | lycheeverse/lychee-action | < 2.0.2 | 2.0.2 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/lycheeverse/lychee-action/commit/7cd0af4c74a61395d455af97419279d86aafaede
- https://github.com/lycheeverse/lychee-action/security/advisories/GHSA-65rg-554r-9j5x
- https://github.com/advisories/GHSA-65rg-554r-9j5x
- https://nvd.nist.gov/vuln/detail/CVE-2024-48908