CVE-2023-22381
GitHub Enterprise Server vulnerability analysis and mitigation

Overview

A code injection vulnerability (CVE-2023-22381) 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. The vulnerability was discovered and disclosed in February 2023. 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 (NVD).

Technical details

The vulnerability is classified as a code injection vulnerability (CWE-94) that allowed attackers to set arbitrary environment variables through improper sanitization of null bytes when using a Windows-based runner in GitHub Actions. The vulnerability was fixed in GitHub Enterprise Server versions 3.4.15, 3.5.12, 3.6.8, and 3.7.5 (GitHub Release Notes).

Impact

The vulnerability could allow an attacker with existing permissions to control environment variables in GitHub Actions to inject arbitrary environment variables on Windows-based runners, potentially leading to code execution within the GitHub Actions environment (NVD).

Mitigation and workarounds

The vulnerability was patched in GitHub Enterprise Server versions 3.4.15, 3.5.12, 3.6.8, and 3.7.5. Organizations running affected versions should upgrade to the patched versions to mitigate this vulnerability (GitHub Release Notes).

Additional resources


SourceThis report was generated using AI

Related GitHub Enterprise Server vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-14046HIGH8.6
  • GitHub Enterprise ServerGitHub Enterprise Server
  • cpe:2.3:a:github:enterprise_server
NoYesDec 11, 2025
CVE-2025-11892HIGH8.6
  • GitHub Enterprise ServerGitHub Enterprise Server
  • cpe:2.3:a:github:enterprise_server
NoYesNov 10, 2025
CVE-2025-13744HIGH8.4
  • GitHub Enterprise ServerGitHub Enterprise Server
  • cpe:2.3:a:github:enterprise_server
NoNoJan 06, 2026
CVE-2025-11578HIGH7.5
  • GitHub Enterprise ServerGitHub Enterprise Server
  • cpe:2.3:a:github:enterprise_server
NoYesNov 10, 2025
CVE-2025-8447HIGH7
  • GitHub Enterprise ServerGitHub Enterprise Server
  • cpe:2.3:a:github:enterprise_server
NoYesAug 26, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management