{"id":"CVE-2023-27581","state":"PUBLISHED","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 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.","publishedAt":"2023-03-13T20:19:23.350Z","updatedAt":"2025-02-25T14:58:17.504Z","severity":{"score":8.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["rlespinasse github-slug-action"],"affected":[{"vendor":"rlespinasse","product":"github-slug-action","versions":[{"version":">= 4.0.0, < 4.4.1","status":"affected"}]}],"references":["https://github.com/rlespinasse/github-slug-action/security/advisories/GHSA-6q4m-7476-932w","https://github.com/rlespinasse/github-slug-action/commit/102b1a064a9b145e56556e22b18b19c624538d94","https://github.com/rlespinasse/github-slug-action/releases/tag/v4.4.1","https://securitylab.github.com/research/github-actions-untrusted-input/"],"weaknesses":["CWE-77"],"ingestedAt":"2026-10-29T20:05:52.290Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/27xxx/CVE-2023-27581.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-27581","state":"PUBLISHED","datePublished":"2023-03-13T20:19:23.350Z","dateUpdated":"2025-02-25T14:58:17.504Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2023-03-04T01:03:53.633Z"},"containers":{"cna":{"title":"github-slug-action vulnerable to arbitrary code execution","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"rlespinasse","product":"github-slug-action","versions":[{"version":">= 4.0.0, < 4.4.1","status":"affected"}]}],"references":[{"url":"https://github.com/rlespinasse/github-slug-action/security/advisories/GHSA-6q4m-7476-932w","name":"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","name":"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","name":"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/","name":"https://securitylab.github.com/research/github-actions-untrusted-input/","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-77","lang":"en","description":"CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2023-03-13T20:19:23.350Z"},"source":{"advisory":"GHSA-6q4m-7476-932w","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/rlespinasse/github-slug-action/security/advisories/GHSA-6q4m-7476-932w","name":"https://github.com/rlespinasse/github-slug-action/security/advisories/GHSA-6q4m-7476-932w","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/rlespinasse/github-slug-action/commit/102b1a064a9b145e56556e22b18b19c624538d94","name":"https://github.com/rlespinasse/github-slug-action/commit/102b1a064a9b145e56556e22b18b19c624538d94","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/rlespinasse/github-slug-action/releases/tag/v4.4.1","name":"https://github.com/rlespinasse/github-slug-action/releases/tag/v4.4.1","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://securitylab.github.com/research/github-actions-untrusted-input/","name":"https://securitylab.github.com/research/github-actions-untrusted-input/","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T12:16:35.956Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-02-25T14:29:34.266308Z","id":"CVE-2023-27581","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-02-25T14:58:17.504Z"}}]}}}