CVE-2023-22381
Code injection in GitHub Enterprise Server leading to arbitrary environment variables in GitHub Actions
- Published
- Updated
- Reserved
- Assigned by
- 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.
Timeline
ID reserved
By GitHub_P
- 2 months later
· 2 months later
Published
- 2 years later
· 2 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_PCNA (assigner) | 3.1 | Medium4.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L |
| NVDNVD · Modified | 3.1 | High8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.84% · top 42% of all CVEs (7 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 4.1.
Weakness
Affected products
- affected 3.4.0 – ≤ 3.4.14
- affected 3.5.0 – ≤ 3.5.11
- affected 3.6.0 – ≤ 3.6.7
- affected 3.7.0 – ≤ 3.7.4
- unaffected 3.8.0
References (5)
- https://docs.github.com/en/[email protected]/admin/release-notes#3.7.5 (opens in a new tab)x_transferred
- https://docs.github.com/en/[email protected]/admin/release-notes#3.6.8 (opens in a new tab)x_transferred
- https://docs.github.com/en/[email protected]/admin/release-notes#3.5.12 (opens in a new tab)x_transferred
- https://docs.github.com/en/[email protected]/admin/release-notes#3.4.15 (opens in a new tab)x_transferred
- https://docs.github.com/en/[email protected]/admin/release-notes (opens in a new tab)x_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2023-22381)Record last updated .