nektos act
cpe:2.3:a:act_project:act:*:*:*:*:go:*:*
- <= 0.2.85
A vulnerability in Nektos act, a tool for running GitHub Actions locally, allows for environment and path injection. This issue exists in versions through 0.2.85. The vulnerability arises because act processes the deprecated '::set-env::' and '::add-path::' commands without any checks. These commands can be exploited to set arbitrary environment variables or modify the PATH for subsequent steps in a workflow. The problem is particularly concerning because it creates a false sense of security; workflows that are safe on GitHub Actions can become vulnerable when run with act.
Exploitation of this vulnerability allows for the injection of environment variables and modification of the PATH, leading to potential arbitrary code execution and command hijacking.
The vulnerability can be reproduced by creating a pull request with a title that includes the '::set-env::' or '::add-path::' commands. When the workflow is executed, act will process these commands, injecting the specified environment variables or modifying the PATH for the job.
Users can upgrade to act version 0.2.86, which patches this vulnerability by adding the necessary checks for the '::set-env::' and '::add-path::' commands.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.