{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-27581","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","state":"PUBLISHED","assignerShortName":"GitHub_M","dateReserved":"2023-03-04T01:03:53.633Z","datePublished":"2023-03-13T20:19:23.350Z","dateUpdated":"2025-02-25T14:58:17.504Z"},"containers":{"cna":{"title":"github-slug-action vulnerable to arbitrary code execution","problemTypes":[{"descriptions":[{"cweId":"CWE-77","lang":"en","description":"CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')","type":"CWE"}]}],"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"}}],"references":[{"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/security/advisories/GHSA-6q4m-7476-932w"},{"name":"https://github.com/rlespinasse/github-slug-action/commit/102b1a064a9b145e56556e22b18b19c624538d94","tags":["x_refsource_MISC"],"url":"https://github.com/rlespinasse/github-slug-action/commit/102b1a064a9b145e56556e22b18b19c624538d94"},{"name":"https://github.com/rlespinasse/github-slug-action/releases/tag/v4.4.1","tags":["x_refsource_MISC"],"url":"https://github.com/rlespinasse/github-slug-action/releases/tag/v4.4.1"},{"name":"https://securitylab.github.com/research/github-actions-untrusted-input/","tags":["x_refsource_MISC"],"url":"https://securitylab.github.com/research/github-actions-untrusted-input/"}],"affected":[{"vendor":"rlespinasse","product":"github-slug-action","versions":[{"version":">= 4.0.0, < 4.4.1","status":"affected"}]}],"providerMetadata":{"orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","shortName":"GitHub_M","dateUpdated":"2023-03-13T20:19:23.350Z"},"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."}],"source":{"advisory":"GHSA-6q4m-7476-932w","discovery":"UNKNOWN"}},"adp":[{"providerMetadata":{"orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE","dateUpdated":"2024-08-02T12:16:35.956Z"},"title":"CVE Program Container","references":[{"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/security/advisories/GHSA-6q4m-7476-932w"},{"name":"https://github.com/rlespinasse/github-slug-action/commit/102b1a064a9b145e56556e22b18b19c624538d94","tags":["x_refsource_MISC","x_transferred"],"url":"https://github.com/rlespinasse/github-slug-action/commit/102b1a064a9b145e56556e22b18b19c624538d94"},{"name":"https://github.com/rlespinasse/github-slug-action/releases/tag/v4.4.1","tags":["x_refsource_MISC","x_transferred"],"url":"https://github.com/rlespinasse/github-slug-action/releases/tag/v4.4.1"},{"name":"https://securitylab.github.com/research/github-actions-untrusted-input/","tags":["x_refsource_MISC","x_transferred"],"url":"https://securitylab.github.com/research/github-actions-untrusted-input/"}]},{"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"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2025-02-25T14:58:17.504Z"}}]}}