{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-27581","id":"CVE-2023-27581","title":"github-slug-action vulnerable to arbitrary code execution","description":"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 wit","descriptionLong":"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.","published":"2023-03-13T20:19:23.350Z","updated":"2026-10-28T02:30:37.694769961Z","reserved":"2023-03-04T01:03:53.633Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["rlespinasse github-slug-action"],"affectedProducts":[{"vendor":"rlespinasse","product":"github-slug-action","defaultStatus":null,"versions":[{"version":">= 4.0.0, < 4.4.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"GitHub Actions","name":"rlespinasse/github-slug-action","purl":null,"ranges":[">=4.0.0 <4.4.1"],"fixed":["4.4.1"],"advisory":"GHSA-6q4m-7476-932w"}],"cwes":["CWE-77"],"aliases":["GHSA-6q4m-7476-932w"],"references":[{"url":"https://github.com/rlespinasse/github-slug-action/security/advisories/GHSA-6q4m-7476-932w","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://github.com/rlespinasse/github-slug-action/commit/102b1a064a9b145e56556e22b18b19c624538d94","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/rlespinasse/github-slug-action/releases/tag/v4.4.1","tags":["x_refsource_MISC","x_transferred","Release Notes","web"]},{"url":"https://securitylab.github.com/research/github-actions-untrusted-input/","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/27xxx/CVE-2023-27581.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-27581","tags":["advisory"]},{"url":"https://github.com/rlespinasse/github-slug-action","tags":["package"]},{"url":"https://securitylab.github.com/research/github-actions-untrusted-input","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.01576,"epssPercentile":0.75995,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-27581","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-27581","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-27581","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-6q4m-7476-932w","ok":true,"note":"GHSA-6q4m-7476-932w"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-27581","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}