CVE-2023-22381
published medium CVSS 3.1 · 4.1Code injection in GitHub Enterprise Server leading to arbitrary environment variables in GitHub Actions
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| GitHub | — | Enterprise Server3.4.0 through 3.4.14 (affected · semver); changes: unaffected at 3.4.15 · 3.5.0 through 3.5.11 (affected · semver); changes: unaffected at 3.5.12 · 3.6.0 through 3.6.7 (affected · semver); changes: unaffected at 3.6.8 · 3.7.0 through 3.7.4 (affected · semver); changes: unaffected at 3.7.5 · 3.8.0 (unaffected) · Other versions: affected | Version-specific | Not stated | GitHub_P |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.1 / 10
- Severity
- medium
- Provider
- GitHub_P · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| GitHub | Enterprise Server | 3.4.0 through 3.4.14 (affected · semver); changes: unaffected at 3.4.153.5.0 through 3.5.11 (affected · semver); changes: unaffected at 3.5.123.6.0 through 3.6.7 (affected · semver); changes: unaffected at 3.6.83.7.0 through 3.7.4 (affected · semver); changes: unaffected at 3.7.53.8.0 (unaffected)Default: affected | GitHub_P · cna |
Weaknesses
1- CWE-94 CWE-94 Improper Control of Generation of Code ('Code Injection')
References
5- https://docs.github.com/en/[email protected]/admin/release-notes#3.4.15
- https://docs.github.com/en/[email protected]/admin/release-notes#3.5.12
- https://docs.github.com/en/[email protected]/admin/release-notes#3.6.8
- https://docs.github.com/en/[email protected]/admin/release-notes#3.7.5
- https://docs.github.com/en/[email protected]/admin/release-notes
Provider assertions
3GitHub_P · cna
Code injection in GitHub Enterprise Server leading to arbitrary environment variables in GitHub Actions
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- c02665855923a6a3697609caa2bd202c7908b296dff7f2bb5a20c4d33b9e89eb
- Ingested
- 23 Sep 2026, 08:06:15 UTC
- Source record
- Official CVE record