CVE-2026-3854: CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection') in GitHub Enterprise Server
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.24, 3.15.19, 3.16.15, 3.17.12, 3.18.6 and 3.19.3.
AI Analysis
Technical Summary
CVE-2026-3854 is a command injection vulnerability classified under CWE-77, affecting GitHub Enterprise Server versions 3.14.0 through 3.19.0. The root cause is improper neutralization of special elements in user-supplied push option values during git push operations. Specifically, when a user with push access submits a git push, the push option values are incorporated into internal service headers without adequate sanitization. The internal header format uses a delimiter character that can also appear in user input, allowing an attacker to craft push option values that inject additional metadata fields. This injection can lead to remote code execution (RCE) on the GitHub Enterprise Server instance, compromising the confidentiality, integrity, and availability of the server and potentially the entire development environment. The vulnerability does not require user interaction or elevated privileges beyond push access, making it relatively easy to exploit if an attacker has repository push rights. The issue was responsibly disclosed via the GitHub Bug Bounty program and has been addressed in patched versions 3.14.24, 3.15.19, 3.16.15, 3.17.12, 3.18.6, and 3.19.3. The CVSS v4.0 base score is 8.7, reflecting high severity due to network attack vector, low attack complexity, no privileges required beyond push access, and high impact on confidentiality, integrity, and availability. No public exploits have been reported yet, but the vulnerability poses a significant risk to organizations relying on self-hosted GitHub Enterprise Server instances.
Potential Impact
The impact of CVE-2026-3854 is substantial for organizations using affected GitHub Enterprise Server versions. Successful exploitation allows an attacker with push access to execute arbitrary code remotely on the server hosting the GitHub Enterprise instance. This can lead to full compromise of the server, including unauthorized access to source code repositories, leakage of sensitive intellectual property, disruption of development workflows, and potential lateral movement within the corporate network. The vulnerability undermines the trust model of GitHub Enterprise by allowing malicious actors to escalate from repository push rights to full server control. Organizations with critical software development pipelines hosted on GitHub Enterprise are at risk of supply chain attacks, data breaches, and operational downtime. Given the widespread adoption of GitHub Enterprise Server in large enterprises, government agencies, and software vendors, the potential impact is global and severe.
Mitigation Recommendations
To mitigate CVE-2026-3854, organizations should immediately upgrade GitHub Enterprise Server to one of the patched versions: 3.14.24, 3.15.19, 3.16.15, 3.17.12, 3.18.6, or 3.19.3. If immediate upgrade is not feasible, restrict push access to trusted users only and monitor git push operations for anomalous push option values. Implement network segmentation and strict access controls around the GitHub Enterprise Server to limit exposure. Enable comprehensive logging and alerting on repository push events and server processes to detect suspicious activity. Conduct a thorough audit of repository collaborators to ensure no unauthorized users have push rights. Additionally, review internal service header handling and consider applying custom input validation or sanitization as a temporary safeguard. Regularly review GitHub Enterprise Server security advisories and apply patches promptly. Finally, integrate GitHub Enterprise Server monitoring with broader security information and event management (SIEM) systems for early detection of exploitation attempts.
Affected Countries
United States, Germany, United Kingdom, Canada, France, Japan, Australia, Netherlands, India, South Korea
CVE-2026-3854: CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection') in GitHub Enterprise Server
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.24, 3.15.19, 3.16.15, 3.17.12, 3.18.6 and 3.19.3.
AI-Powered Analysis
Technical Analysis
CVE-2026-3854 is a command injection vulnerability classified under CWE-77, affecting GitHub Enterprise Server versions 3.14.0 through 3.19.0. The root cause is improper neutralization of special elements in user-supplied push option values during git push operations. Specifically, when a user with push access submits a git push, the push option values are incorporated into internal service headers without adequate sanitization. The internal header format uses a delimiter character that can also appear in user input, allowing an attacker to craft push option values that inject additional metadata fields. This injection can lead to remote code execution (RCE) on the GitHub Enterprise Server instance, compromising the confidentiality, integrity, and availability of the server and potentially the entire development environment. The vulnerability does not require user interaction or elevated privileges beyond push access, making it relatively easy to exploit if an attacker has repository push rights. The issue was responsibly disclosed via the GitHub Bug Bounty program and has been addressed in patched versions 3.14.24, 3.15.19, 3.16.15, 3.17.12, 3.18.6, and 3.19.3. The CVSS v4.0 base score is 8.7, reflecting high severity due to network attack vector, low attack complexity, no privileges required beyond push access, and high impact on confidentiality, integrity, and availability. No public exploits have been reported yet, but the vulnerability poses a significant risk to organizations relying on self-hosted GitHub Enterprise Server instances.
Potential Impact
The impact of CVE-2026-3854 is substantial for organizations using affected GitHub Enterprise Server versions. Successful exploitation allows an attacker with push access to execute arbitrary code remotely on the server hosting the GitHub Enterprise instance. This can lead to full compromise of the server, including unauthorized access to source code repositories, leakage of sensitive intellectual property, disruption of development workflows, and potential lateral movement within the corporate network. The vulnerability undermines the trust model of GitHub Enterprise by allowing malicious actors to escalate from repository push rights to full server control. Organizations with critical software development pipelines hosted on GitHub Enterprise are at risk of supply chain attacks, data breaches, and operational downtime. Given the widespread adoption of GitHub Enterprise Server in large enterprises, government agencies, and software vendors, the potential impact is global and severe.
Mitigation Recommendations
To mitigate CVE-2026-3854, organizations should immediately upgrade GitHub Enterprise Server to one of the patched versions: 3.14.24, 3.15.19, 3.16.15, 3.17.12, 3.18.6, or 3.19.3. If immediate upgrade is not feasible, restrict push access to trusted users only and monitor git push operations for anomalous push option values. Implement network segmentation and strict access controls around the GitHub Enterprise Server to limit exposure. Enable comprehensive logging and alerting on repository push events and server processes to detect suspicious activity. Conduct a thorough audit of repository collaborators to ensure no unauthorized users have push rights. Additionally, review internal service header handling and consider applying custom input validation or sanitization as a temporary safeguard. Regularly review GitHub Enterprise Server security advisories and apply patches promptly. Finally, integrate GitHub Enterprise Server monitoring with broader security information and event management (SIEM) systems for early detection of exploitation attempts.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_P
- Date Reserved
- 2026-03-09T20:19:58.513Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 69b059afea502d3aa881750d
Added to database: 3/10/2026, 5:49:35 PM
Last enriched: 3/10/2026, 6:03:36 PM
Last updated: 3/14/2026, 12:29:28 AM
Views: 184
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.