What’s Vulnerable › Vulnerabilities
CVE-2023-22381: Code injection in GitHub Enterprise Server leading to arbitrary environment variables in GitHub Actions
- Severity: high (CVSS 8.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.8% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2023-03-02 · updated 2026-06-17
- Weakness: CWE-94
Description
A code injection vulnerability was identified in GitHub Enterprise Server that allowed setting arbitrary environment variables from a single environment variable value in GitHub Actions when using a Windows based runner. To exploit this vulnerability, an attacker would need existing permission to control the value of environment variables for use with GitHub Actions. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.8.0 and was fixed in versions 3.4.15, 3.5.12, 3.6.8, 3.7.5. This vulnerability was reported via the GitHub Bug Bounty program.
Affected products
- GitHub Enterprise Server: before 3.4.15; from 3.5.0 before 3.5.12; from 3.6.0 before 3.6.8; from 3.7.0 before 3.7.5 — fixed in 3.4.15, 3.5.12, 3.6.8, 3.7.5
How to fix
Upgrade to a fixed version: GitHub Enterprise Server 3.4.15, 3.5.12, 3.6.8, 3.7.5. Check the vendor advisory for mitigations.
References
- https://docs.github.com/en/enterprise-server@3.4/admin/release-notes#3.4.15
- https://docs.github.com/en/enterprise-server@3.5/admin/release-notes#3.5.12
- https://docs.github.com/en/enterprise-server@3.6/admin/release-notes#3.6.8
- https://docs.github.com/en/enterprise-server@3.7/admin/release-notes#3.7.5
- https://docs.github.com/en/enterprise-server@3.8/admin/release-notes
- https://docs.github.com/en/enterprise-server@3.4/admin/release-notes#3.4.15
- https://docs.github.com/en/enterprise-server@3.5/admin/release-notes#3.5.12
- https://docs.github.com/en/enterprise-server@3.6/admin/release-notes#3.6.8
- https://docs.github.com/en/enterprise-server@3.7/admin/release-notes#3.7.5
- https://docs.github.com/en/enterprise-server@3.8/admin/release-notes
Get alerted when CVE-2023-22381 or the next vulnerability affects your stack