CVE-2023-22381

Code injection in GitHub Enterprise Server leading to arbitrary environment variables in GitHub Actions

State
Published
Severity
4.1 Medium
Published
Mar 2, 2023
Updated
Mar 5, 2025
Reserved
Dec 20, 2022

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.14.1 MediumCVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:LGitHub_P

Weaknesses

  • CWE-94 Improper Control of Generation of Code ('Code Injection')

Affected Products

ProductVersions
Enterprise ServerGitHub
  • 3.4.0 through 3.4.14Affectedfrom 3.4.15Not affected
  • 3.5.0 through 3.5.11Affectedfrom 3.5.12Not affected
  • 3.6.0 through 3.6.7Affectedfrom 3.6.8Not affected
  • 3.7.0 through 3.7.4Affectedfrom 3.7.5Not affected
  • 3.8.0Not affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.