Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-48908 Overview
CVE-2024-48908 is an arbitrary code injection vulnerability in the lychee-action GitHub Action. The lychee-action project checks links in Markdown, HTML, and text files using the lychee link checker. Versions prior to 2.0.2 contain an injection flaw in the lychee-setup step of the composite action defined in action.yml. An attacker able to influence inputs processed by the setup step can inject and execute arbitrary code within the GitHub Actions runner context. The maintainers patched the issue in version 2.0.2.
Critical Impact
Successful exploitation lets an attacker execute arbitrary commands inside the CI workflow, exposing repository secrets and build artifacts.
Affected Products
- lychee-action composite GitHub Action prior to version 2.0.2
- Workflows invoking the vulnerable lychee-setup step in action.yml
- CI pipelines consuming untrusted inputs through the action
Discovery Timeline
- 2025-08-28 - CVE-2024-48908 published to NVD
- 2026-09-26 - Last updated in NVD database
Technical Details for CVE-2024-48908
Vulnerability Analysis
The weakness is classified as Improper Control of Generation of Code [CWE-94]. The lychee-setup step inside the composite action at action.yml incorporates attacker-influenced input into a shell execution context without proper sanitization. GitHub composite actions execute shell commands using run: blocks, and when workflow input or event payload data is interpolated directly into these commands, an attacker can break out of the intended command and inject additional shell syntax.
Because GitHub Actions runners typically have access to repository secrets, GITHUB_TOKEN, and the workflow environment, code execution inside the action translates to full compromise of the CI job. Exploitation requires that a workflow consume the action with values an attacker controls, such as pull request titles, branch names, or issue content. The attack complexity reflects this prerequisite.
Root Cause
The root cause is unsafe expansion of input values into a shell command within the lychee-setup composite step. Values that should be treated as data are interpreted as shell syntax, enabling command substitution and chained commands. The 2.0.2 release removes this unsafe interpolation.
Attack Vector
The vulnerability is reachable over the network through any public repository that uses the vulnerable action in a workflow triggered by untrusted events (for example, pull_request_target or issue_comment). An attacker crafts input containing shell metacharacters so that the lychee-setup step executes injected commands when the workflow runs. Refer to the GitHub Security Advisory GHSA-65rg-554r-9j5x and the GitHub Commit 7cd0af4 for the technical fix.
Stop Remote Code Execution Before It Runs
Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.
Stop Exploit AttemptsDetection Methods for CVE-2024-48908
Indicators of Compromise
- Unexpected outbound network connections from GitHub Actions runners executing lychee-action jobs.
- Workflow logs containing shell metacharacters such as backticks, $(...), or ; within lychee-setup step output.
- Usage of lychee-action versions prior to 2.0.2 pinned by tag rather than commit SHA.
Detection Strategies
- Scan repository .github/workflows/ directories for references to lycheeverse/lychee-action and verify the pinned version or commit SHA.
- Audit workflow triggers for pull_request_target, issue_comment, or similar events that pass untrusted input to the action.
- Review GitHub Actions run logs for anomalous commands executed during the lychee-setup step.
Monitoring Recommendations
- Enable GitHub audit log streaming and alert on new secret access or token usage originating from workflow runs.
- Monitor for new or modified workflow files that downgrade the lychee-action version.
- Track egress traffic from self-hosted runners to detect data exfiltration attempts following action execution.
How to Mitigate CVE-2024-48908
Immediate Actions Required
- Upgrade all workflows referencing lycheeverse/lychee-action to version 2.0.2 or later.
- Pin the action to a verified commit SHA rather than a floating tag to prevent silent downgrades.
- Rotate any secrets or tokens that were exposed to vulnerable workflow runs triggered by untrusted input.
Patch Information
The maintainers patched the injection flaw in lychee-action version 2.0.2. The fix is implemented in commit 7cd0af4c74a61395d455af97419279d86aafaede, which removes the unsafe shell interpolation in the lychee-setup step of action.yml. Full details are published in GitHub Security Advisory GHSA-65rg-554r-9j5x.
Workarounds
- Restrict workflows that use the action to trusted events such as push from protected branches.
- Avoid passing attacker-controllable values (pull request titles, issue bodies, branch names) as inputs to the action.
- Use the GitHub Actions permissions: key to grant the minimum GITHUB_TOKEN scope required by the workflow.
# Pin lychee-action to the patched release by commit SHA
- name: Link Checker
uses: lycheeverse/lychee-action@7cd0af4c74a61395d455af97419279d86aafaede # v2.0.2
with:
args: --verbose --no-progress './**/*.md'
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

