CVE-2022-39321 GitHub Actions Runner vulnerable to Docker Command Escaping
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- Docker
Description
GitHub Actions Runner is the application that runs a job from a GitHub Actions workflow. The actions runner invokes the docker cli directly in order to run job containers, service containers, or container actions. A bug in the logic for how the environment is encoded into these docker commands was discovered in versions prior to 2.296.2, 2.293.1, 2.289.4, 2.285.2, and 2.283.4 that allows an input to escape the environment variable and modify that docker command invocation directly. Jobs that use container actions, job containers, or service containers alongside untrusted user inputs in environment variables may be vulnerable. The Actions Runner has been patched, both on github.com and hotfixes for GHES and GHAE customers in versions 2.296.2, 2.293.1, 2.289.4, 2.285.2, and 2.283.4. GHES and GHAE customers may want to patch their instance in order to have their runners automatically upgrade to these new runner versions. As a workaround, users may consider removing any container actions, job containers, or service containers from their jobs until they are able to upgrade their runner versions.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| actions/runner(GitHub Actions) | < 2.283.4; >= 2.284.0, < 2.285.2; >= 2.286.0, < 2.289.4; >= 2.290.0, < 2.293.1 +1 more | 2.283.4, 2.285.2, 2.289.4, 2.293.1, 2.296.1 | Fixed |
| GitHub runner | < 2.283.4; >= 2.284.0, < 2.285.2; >= 2.286.0, < 2.289.4; >= 2.290.0, < 2.293.1 +1 more | 2.283.4, 2.285.2, 2.289.4, 2.293.1, 2.296.2 | Fixed |
| actions/runner | = < 2.283.4; = >= 2.284.0, < 2.285.2; = >= 2.286.0, < 2.289.4; = >= 2.290.0, < 2.293.1 +1 more | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| actions/runner(GitHub Actions) | >= 2.294.0, < 2.296.1 | 2.296.1 |
| actions/runner(GitHub Actions) | >= 2.290.0, < 2.293.1 | 2.293.1 |
| actions/runner(GitHub Actions) | >= 2.286.0, < 2.289.4 | 2.289.4 |
| actions/runner(GitHub Actions) | >= 2.284.0, < 2.285.2 | 2.285.2 |
| actions/runner(GitHub Actions) | < 2.283.4 | 2.283.4 |
| actions/runner | = < 2.283.4 | No fix listed |
| actions/runner | = >= 2.284.0, < 2.285.2 | No fix listed |
| actions/runner | = >= 2.286.0, < 2.289.4 | No fix listed |
| actions/runner | = >= 2.290.0, < 2.293.1 | No fix listed |
| actions/runner | = >= 2.294.0, < 2.296.2 | No fix listed |
| GitHub runner | < 2.283.4 | 2.283.4 |
| GitHub runner | >= 2.284.0, < 2.285.2 | 2.285.2 |
| GitHub runner | >= 2.286.0, < 2.289.4 | 2.289.4 |
| GitHub runner | >= 2.290.0, < 2.293.1 | 2.293.1 |
| GitHub runner | >= 2.294.0, < 2.296.2 | 2.296.2 |
References
- github.com third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory
- github.com patch release-notes third-party-advisory
- github.com patch third-party-advisory
- github.com