GHSA-2c6m-6gqh-6qg3

Suggest an improvement
Source
https://github.com/advisories/GHSA-2c6m-6gqh-6qg3
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/10/GHSA-2c6m-6gqh-6qg3/GHSA-2c6m-6gqh-6qg3.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-2c6m-6gqh-6qg3
Aliases
Published
2022-10-25T19:54:27Z
Modified
2023-11-08T04:10:18.762623Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Docker Command Escaping in the GitHub Actions Runner
Details

Impact

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 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.

Patches

The Actions Runner has been patched, both on github.com and hotfixes for GHES and GHAE customers. Please update to one of the following versions of the runner: - 2.296.2 - 2.293.1 - 2.289.4 - 2.285.2 - 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.

Workarounds

You may want to consider removing any container actions, job containers, or service containers from your jobs until you are able to upgrade your runner versions.

For more information

If you have any questions or comments about this advisory: * Open an issue in the actions runner

Database specific
{
    "nvd_published_at": "2022-10-25T17:15:00Z",
    "github_reviewed_at": "2022-10-25T19:54:27Z",
    "severity": "HIGH",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-78"
    ]
}
References

Affected packages

GitHub Actions / actions/runner

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.294.0
Fixed
2.296.2

Database specific

{
    "last_known_affected_version_range": "< 2.296.1"
}

GitHub Actions / actions/runner

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.290.0
Fixed
2.293.1

GitHub Actions / actions/runner

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.286.0
Fixed
2.289.4

GitHub Actions / actions/runner

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.284.0
Fixed
2.285.2

GitHub Actions / actions/runner

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.283.4