CVE-2023-22381 json
Code injection in GitHub Enterprise Server leading to arbitrary environment variables in GitHub Actions
published 3y ago modified 5mo ago also EUVD-2023-26544
- cvss
- 4.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 58%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- GitHub Enterprise Server 3.4.15, 3.5.12, 3.6.8, 3.7.5, 3.8.0
Is CVE-2023-22381 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
0.84% chance of exploitation in the next 30 days, higher than 58% of all scored CVEs (FIRST EPSS, 2026-11-17).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- GitHub Enterprise Server
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
- Technology feeds
References
-
docs.github.com
/en/enterprise-server@3.7/admin/release-notes#3.7.5
release-notes
-
docs.github.com
/en/enterprise-server@3.6/admin/release-notes#3.6.8
release-notes
-
docs.github.com
/en/enterprise-server@3.5/admin/release-notes#3.5.12
release-notes
-
docs.github.com
/en/enterprise-server@3.4/admin/release-notes#3.4.15
release-notes
-
docs.github.com
/en/enterprise-server@3.8/admin/release-notes
release-notes
Sources
- CVE List CVE-2023-22381
- NVD CVE-2023-22381
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.