{"id":"CVE-2023-27581","published":"2023-03-13T20:19:23Z","modified":"2025-02-25T14:58:17Z","title":"github-slug-action vulnerable to arbitrary code execution","vendor":"rlespinasse","product":"github-slug-action","tier":"tail","description":{"text":"github-slug-action is a GitHub Action to expose slug value of GitHub environment variables inside of one's GitHub workflow. Starting in version 4.0.0` and prior to version 4.4.1, this action uses the `github.head_ref` parameter in an insecure way. This vulnerability can be triggered by any user on GitHub on any workflow using the action on pull requests. They just need to create a pull request with a branch name, which can contain the attack payload. This can be used to execute code on the GitHub runners and to exfiltrate any secrets one uses in the CI pipeline. A patched action is available in version 4.4.1. No workaround is available.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01576,"percentile":0.76072,"provenance":"source"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"references":[{"url":"https://github.com/rlespinasse/github-slug-action/security/advisories/GHSA-6q4m-7476-932w","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rlespinasse/github-slug-action/commit/102b1a064a9b145e56556e22b18b19c624538d94","tags":["x_refsource_MISC"]},{"url":"https://github.com/rlespinasse/github-slug-action/releases/tag/v4.4.1","tags":["x_refsource_MISC"]},{"url":"https://securitylab.github.com/research/github-actions-untrusted-input/","tags":["x_refsource_MISC"]}],"priority":{"score":21.4,"factors":[{"name":"EPSS percentile","points":15.21},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"rlespinasse","affectedVersions":[{"vendor":"rlespinasse","product":"github-slug-action","versions":[">= 4.0.0, < 4.4.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-02-25T14:29:34.266308Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"GitHub Actions","package":"rlespinasse/github-slug-action","vulnerableRanges":[">=4.0.0, <4.4.1"],"patched":["4.4.1"],"from":["GHSA-6q4m-7476-932w"],"provenance":"source"}],"euvd":{"id":"EUVD-2023-0908","exploited":false,"provenance":"source"}}