SecurityContext

CVE-2023-27581: github-slug-action - Command Injection

  • Cve: CVE-2023-27581
  • Name: github-slug-action - Command Injection
  • 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.
  • Impact: Attackers can execute arbitrary code on GitHub runners and exfiltrate secrets, leading to potential compromise of CI/CD pipeline and sensitive data.
  • Remediation: Update to version 4.4.1 or later.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution, information_disclosure
  • Requirement type: user_interaction
  • Requirements: Attacker needs to create a pull request with malicious branch name
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.01576
  • Epss percentile: 0.76109
  • Assignee: [email protected]
  • Published at: 2023-03-13T21:15:14Z
  • Age in days: 1352
  • Modified at: 2026-06-17T05:45:30Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 4
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-27581
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-77Improper Neutralization of Special Elements used in a Command

Public exploits

UrlSourceAdded date
https://securitylab.github.com/research/github-actions-untrusted-input/nvd2023-03-13

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/rlespinasse/github-slug-action/commit/102b1a064a9b145e56556e22b18b19c624538d94Patch
https://github.com/rlespinasse/github-slug-action/security/advisories/GHSA-6q4m-7476-932wVendor Advisory
https://securitylab.github.com/research/github-actions-untrusted-input/Exploit, Third Party Advisory
https://github.com/rlespinasse/github-slug-action/releases/tag/v4.4.1Release Notes

Products

ProductAffectedPlatform boundSourcesUrl
github-slug-action_project:github-slug-action>= 4.0.0, < 4.4.1nonvd/v1/products/github-slug-action_project/github-slug-action

Projects

RepositoryLink kindsIndexedUrl
rlespinasse/github-slug-actioncommit, package, releases, security_advisoryyes/v1/repositories/rlespinasse/github-slug-action

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2023-03-13
  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts