PT-2023-21224 · Github · Github-Slug-Action
R3X
·
Published
2023-03-13
·
Updated
2023-03-17
·
CVE-2023-27581
CVSS v3.1
8.8
High
| Vector | AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
github-slug-action versions 4.0.0 through 4.4.1
Description
The github-slug-action uses the
github.head ref parameter in an insecure way, allowing any user on GitHub to trigger the vulnerability by creating a pull request with a branch name containing the attack payload. This can be used to execute code on the GitHub runners and to exfiltrate any secrets used in the CI pipeline.Recommendations
For github-slug-action versions 4.0.0 through 4.4.1, update to version 4.4.1 or later to resolve the issue. As a temporary workaround, consider passing the variable as an environment variable and using the environment variable instead of substituting it directly, until a patch is available. No other workarounds are available, so upgrading the version is the recommended course of action.
Exploit
Fix
Command Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Github-Slug-Action