{"id":"CVE-2026-25761","aliases":["CVE-2026-25761","GHSA-r79c-pqj3-577x"],"related":[],"kind":"vulnerability","state":"published","title":"Command injection via crafted filenames in Super-linter Action","summary":"Super-linter is a combination of multiple linters to run as a GitHub Action or standalone. From 6.0.0 to 8.3.0, the Super-linter GitHub Action is vulnerable to command injection via crafted filenames. When this action is used in downstream GitHub Actions workflows, an attacker can submit a pull request that introduces a file whose name contains shell command substitution syntax, such as $(...). In affected Super-linter versions, runtime scripts may execute the embedded command during file discovery processing, enabling arbitrary command execution in the workflow runner context. This can be used to disclose the job’s GITHUB_TOKEN depending on how the workflow configures permissions. This vulnerability is fixed in 8.3.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Super-linter is a combination of multiple linters to run as a GitHub Action or standalone. From 6.0.0 to 8.3.0, the Super-linter GitHub Action is vulnerable to command injection via crafted filenames. When this action is used in downstream GitHub Actions workflows, an attacker can submit a pull request that introduces a file whose name contains shell command substitution syntax, such as $(...). In affected Super-linter versions, runtime scripts may execute the embedded command during file discovery processing, enabling arbitrary command execution in the workflow runner context. This can be used to disclose the job’s GITHUB_TOKEN depending on how the workflow configures permissions. This vulnerability is fixed in 8.3.1.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nThe Super-linter GitHub Action is vulnerable to **command injection via crafted filenames**. When this action is used in downstream GitHub Actions workflows, an attacker can submit a pull request that introduces a file whose **name** contains shell command substitution syntax, such as `$(...)`. In affected Super-linter versions, runtime scripts may execute the embedded command during file discovery processing, enabling arbitrary command execution in the workflow runner context. This can be used to disclose the job’s `GITHUB_TOKEN` depending on how the workflow configures permissions.\n\n### Details\n\nThe issue appears originates in the logic that scans the repository for changed files to check.\n\n1. Use a workflow that runs Super-linter on `pull_request` events.\n2. Open a pull request that adds a new file with a crafted filename containing command substitution and an outbound request that includes `$GITHUB_TOKEN`.\n3. Run the workflow.  \n\n### Impact\n\n- **Arbitrary command execution** in the context of the workflow run that invokes Super-linter (triggered by attacker-controlled filenames in a PR).\n- **Credential exposure / misuse:** the injected command can read environment variables available to the action, including `GITHUB_TOKEN`.\n\nThe level of exposure depends on the source of the pull request.\n\nTo actively exploit the vulnerability, an attacker needs have the ability to run workflows without any [approval from the repository admin](https://docs.github.com/en/actions/how-tos/manage-workflow-runs/approve-runs-from-forks).\n\nAlso, the `GITHUB_TOKEN` needs to have unconstrained access to repository resources. Even in that case, for pull request coming from forked repositories, no secrets are passed to the forked repository when running workflows triggered by `pull_request` events, and the `GITHUB_TOKEN` drops and write permission on the source repository [source](https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#workflows-in-forked-repositories).\n\nFinally, although not specific to this vulnerability, we recommend auditing `workflow_call` and `pull_request_target` workflows because they can lead to compromise, regardless of whether you're using Super-linter, or not, as [explained by this GitHub Enterprise doc](https://docs.github.com/en/enterprise-cloud@latest/actions/reference/security/secure-use#mitigating-the-risks-of-untrusted-code-checkout).","format":"markdown","source":"ghsa"},{"lang":"es","text":"Super-linter es una combinación de múltiples linters para ejecutar como una Acción de GitHub o de forma independiente. Desde la 6.0.0 hasta la 8.3.0, la Acción de GitHub Super-linter es vulnerable a inyección de comandos a través de nombres de archivo manipulados. Cuando esta acción se utiliza en flujos de trabajo de GitHub Actions posteriores, un atacante puede enviar una solicitud de extracción que introduce un archivo cuyo nombre contiene sintaxis de sustitución de comandos de shell, como $(...). En las versiones afectadas de Super-linter, los scripts en tiempo de ejecución pueden ejecutar el comando incrustado durante el procesamiento de descubrimiento de archivos, lo que permite la ejecución arbitraria de comandos en el contexto del ejecutor del flujo de trabajo. Esto puede usarse para divulgar el GITHUB_TOKEN del trabajo dependiendo de cómo el flujo de trabajo configure los permisos. Esta vulnerabilidad se corrige en la 8.3.1.","source":"nvd"}],"published":"2026-02-09T17:46:31.000Z","modified":"2026-06-17T10:25:11.233Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-77"],"affected":[{"ranges":[{"version":">= 6.0.0, < 8.3.1","status":"affected"}],"vendor":"super-linter","product":"super-linter","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"6.0.0","status":"affected","fixed":"8.3.1"}],"ecosystem":"GitHub Actions","package":"super-linter/super-linter","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.0.0","status":"affected","fixed":"8.3.1"}],"ecosystem":"GitHub Actions","package":"super-linter/super-linter/slim","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"6.0.0","fixed":"8.3.1"}],"vendor":"super-linter_project","product":"super-linter","cpe":"cpe:2.3:a:super-linter_project:super-linter:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/super-linter/super-linter/security/advisories/GHSA-r79c-pqj3-577x","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/super-linter/super-linter/releases/tag/v8.3.1","tags":["product","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25761","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/super-linter/super-linter","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-02-10T15:32:07.659Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-25761","url":"https://www.cve.org/CVERecord?id=CVE-2026-25761","licence":"CVE Terms of Use","modified":"2026-02-10T15:59:33.745Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-r79c-pqj3-577x","url":"https://github.com/advisories/GHSA-r79c-pqj3-577x","licence":"CC-BY-4.0","modified":"2026-02-22T23:25:26.599Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-25761","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25761","licence":"Public domain","modified":"2026-06-17T10:25:11.233Z"}],"updatedAt":"2026-11-25T22:59:13.675Z","epss":{"score":0.01477,"percentile":0.74633,"date":"2026-12-01T12:00:22.000Z"}}