CVE-2026-3854

Remote code execution via git push option injection in GitHub Enterprise Server

State
Published
Severity
8.7 High
Published
Mar 10, 2026
Updated
Apr 29, 2026
Reserved
Mar 9, 2026

Read the record on cve.org

Description

An improper neutralization of special elements vulnerability was identified in GitHub Enterprise Server that allowed an attacker with push access to a repository to achieve remote code execution on the instance. During a git push operation, user-supplied push option values were not properly sanitized before being included in internal service headers. Because the internal header format used a delimiter character that could also appear in user input, an attacker could inject additional metadata fields through crafted push option values. This vulnerability was reported via the GitHub Bug Bounty program and has been fixed in GitHub Enterprise Server versions 3.14.25, 3.15.20, 3.16.16, 3.17.13, 3.18.7 and 3.19.4.

Scores

CVSSScoreVectorSource
4.08.7 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NGitHub_P

Weaknesses

  • CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')

Affected Products

ProductVersions
Enterprise ServerGitHub
  • 3.14.0 through 3.14.24Affectedfrom 3.14.25Not affected
  • 3.15.0 through 3.15.19Affectedfrom 3.15.20Not affected
  • 3.16.0 through 3.16.15Affectedfrom 3.16.16Not affected
  • 3.17.0 through 3.17.12Affectedfrom 3.17.13Not affected
  • 3.18.0 through 3.18.6Affectedfrom 3.18.7Not affected
  • 3.19.0 through 3.19.3Affectedfrom 3.19.4Not 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.