CVE-2024-48908: Lycheeverse/lychee action Lychee Link Checking Action Affected Vulnerability

MODERATE
Advisory Identifier: GHSA-65rg-554r-9j5x
CWE-94
Published
Advisory Summary

CVE-2024-48908 is a MODERATE lychee link checking action affected vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Lycheeverse/lychee action libraries in the GitHub Actions ecosystem. The issue involves lychee link checking action affected by arbitrary code injection in composite action. Remediation is available by upgrading affected packages to version 2.0.2.

CVE-2024-48908 at a Glance

CVE Identifier CVE-2024-48908
GHSA Identifier GHSA-65rg-554r-9j5x
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Lycheeverse/lychee action
Package Ecosystem GitHub Actions
Published Date
Last Updated

How to Fix CVE-2024-48908

To remediate this vulnerability, upgrade all affected Lycheeverse/lychee action dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

lycheeverse/lychee-action fixed: 2.0.2
Upgrade lycheeverse/lychee-action to 2.0.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for lycheeverse/lychee-action

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-48908, inspect your project dependencies for Lycheeverse/lychee action:

inspect dependencies for lycheeverse/lychee-action

Analyze the terminal output to locate any version of Lycheeverse/lychee action in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.2), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Lycheeverse/lychee action, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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

CVE-2024-48908 Affected Lycheeverse/lychee action Versions

1 component(s)
Fixed Versions:
2.0.2
Product / Package Ecosystem Affected Versions Fixed Version
lycheeverse/lychee-action
GitHub Actions
< 2.0.2
2.0.2

References

Frequently Asked Questions

What is CVE-2024-48908?
CVE-2024-48908 is a security vulnerability in Lycheeverse/lychee action involving lychee link checking action affected by arbitrary code injection in composite action under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Lycheeverse/lychee action versions are affected?
Affected versions include releases prior to 2.0.2 across affected packages: lycheeverse/lychee-action.
What version fixes CVE-2024-48908?
Upgrading to 2.0.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is lycheeverse/lychee-action affected?
Yes, lycheeverse/lychee-action is affected in releases prior to 2.0.2. Upgrade your dependency to 2.0.2 or later.
What CWE is associated with CVE-2024-48908?
CVE-2024-48908 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.).
How can I check GitHub Actions dependencies for CVE-2024-48908?
Run the dependency tree command: 'inspect dependencies for lycheeverse/lychee-action'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-65rg-554r-9j5x",
  "modified" : "2025-08-28T15:59:37Z",
  "published" : "2025-08-28T14:40:08Z",
  "aliases" : [ "CVE-2024-48908" ],
  "summary" : "lychee link checking action affected by arbitrary code injection in composite action",
  "details" : "### Summary\n\nThere is a potential attack of arbitrary code injection vulnerability in `lychee-setup` of the composite action at *action.yml*.\n\n### Details\n\nThe GitHub Action variable `inputs.lycheeVersion` can be used to execute arbitrary code in the context of the action.\n\n### PoC\n\n```yaml\n- uses: lycheeverse/lychee@v2\n  with:\n    lycheeVersion: $(printenv >> $GITHUB_STEP_SUMMARY && echo \"v0.16.1\")\n```\n\nThe 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.\n\n### Impact\n\nLow",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "GitHub Actions",
      "name" : "lycheeverse/lychee-action"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/lycheeverse/lychee-action/security/advisories/GHSA-65rg-554r-9j5x"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-48908"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/lycheeverse/lychee-action/commit/7cd0af4c74a61395d455af97419279d86aafaede"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/lycheeverse/lychee-action"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-94" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-08-28T14:40:08Z",
    "nvd_published_at" : "2025-08-28T15:15:42Z"
  }
}