CVE-2023-27581github-slug-action vulnerable to arbitrary code execution
- 8.8HighCVSS base score
- 1.6%Exploitation in 30 daysEPSS · top 24% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By GitHub_M
- 9 days later
· 9 days later
Published
- 24 months later
· 24 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Modified | 3.1 | High8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 1.6% · top 24% of all CVEs (15 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.8.
Affected products
rlespinasse · github-slug-action
- affected >= 4.0.0, < 4.4.1
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- GitHub Actionsrlespinasse/github-slug-actionGHSA-6q4m-7476-932w (opens in a new tab)
References
References4
- https://github.com/rlespinasse/github-slug-action/security/advisories/GHSA-6q4m-7476-932w (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/rlespinasse/github-slug-action/commit/102b1a064a9b145e56556e22b18b19c624538d94 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/rlespinasse/github-slug-action/releases/tag/v4.4.1 (opens in a new tab)x_refsource_MISCx_transferred
- https://securitylab.github.com/research/github-actions-untrusted-input/ (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2023-0908 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-6q4m-7476-932w (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2023-27581)Record last updated .