# CVE-2023-22381: Code injection in GitHub Enterprise Server leading to arbitrary environment variables in GitHub Actions

- Severity: Medium 4.1 (CVSS:3.1, scored by GitHub_P) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.84%, higher than 58% of CVEs (2026-12-01)
- Published: 2023-03-02T20:54:34.191Z
- Modified: 2026-06-17T05:35:16.687Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- GitHub Enterprise Server: from 3.4.0 up to 3.4.14; from 3.5.0 up to 3.5.11; from 3.6.0 up to 3.6.7; from 3.7.0 up to 3.7.4 (not affected: 3.8.0)
- 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

## Every score

- GitHub_P: CVSS:3.1 4.1 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://docs.github.com/en/enterprise-server@3.7/admin/release-notes#3.7.5> (release-notes)
- <https://docs.github.com/en/enterprise-server@3.6/admin/release-notes#3.6.8> (release-notes)
- <https://docs.github.com/en/enterprise-server@3.5/admin/release-notes#3.5.12> (release-notes)
- <https://docs.github.com/en/enterprise-server@3.4/admin/release-notes#3.4.15> (release-notes)
- <https://docs.github.com/en/enterprise-server@3.8/admin/release-notes> (release-notes)

## Sources

- CVE List: [CVE-2023-22381](https://www.cve.org/CVERecord?id=CVE-2023-22381), CVE Terms of Use, modified 2025-03-05
- NVD: [CVE-2023-22381](https://nvd.nist.gov/vuln/detail/CVE-2023-22381), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-22381 · Whole record: https://cve.day/CVE-2023-22381.json · Rebuilt by cve.day 2026-11-25T22:58:22.251Z
