Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
HighPublic exploit

Remote Code Execution in GitHub Enterprise Server via crafted git push options

IdentifiersCVE-2026-3854CWE-77· Improper Neutralization of Special…

CVE-2026-3854 is a high-severity remote code execution vulnerability in GitHub Enterprise Server (and, per supporting reporting, related GitHub cloud offerings) caused by improper neutralization of special elements in user-supplied git push option values. During a git push, attacker-controlled push option values were incorporated into internal service headers / metadata without sufficient sanitization. Because the internal header format used a delimiter character that could also appear in user input, a user with push access could craft push option values that injected additional trusted metadata fields into downstream services. Supporting reporting describes this as a command-injection-style flaw in GitHub’s git infrastructure that could manipulate the execution environment for push processing, bypass sandboxing protections, and ultimately execute arbitrary commands on the server handling the push.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows arbitrary command execution on the affected GitHub server. On GitHub Enterprise Server, this can lead to full system compromise, including read/write access to hosted repositories and access to internal configuration and secrets available to the git service context. Supporting reporting also indicates that, in GitHub’s cloud environment, exploitation could have enabled read/write access to large numbers of private repositories on shared backend infrastructure. GitHub stated it found no evidence of malicious exploitation prior to remediation.

Mitigation

If you can’t patch tonight, do this now.

If immediate upgrade is not possible, reduce exposure by strictly limiting repository push access to trusted users only, especially on internet-exposed GHES instances, and monitor audit/access logs for anomalous git push activity and unusual push option usage. Review logs for suspicious delimiter-bearing push option values as suggested in supporting reporting. These are temporary risk-reduction measures only; vendor patching is the required mitigation.

Remediation

Patch, then assume compromise.

Upgrade GitHub Enterprise Server to a fixed release. The vendor-provided fixed versions in the primary description are 3.14.25, 3.15.20, 3.16.16, 3.17.13, 3.18.7, and 3.19.4. Some supporting reports reference 3.18.8 and 3.20.0+; however, the directly provided vulnerability description specifies 3.18.7 and 3.19.4 as fixed versions. Cloud-hosted GitHub services were patched by GitHub and do not require customer action. Where available, follow GitHub guidance to review relevant access/audit logs for suspicious git push operations involving crafted push options.
PUBLIC EXPLOITS

Exploits

1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos (6 hidden).

VALID 1 / 7 TOTALView more in app
CVE-2026-3854-PoCMaturityPoCVerified exploit

Small 3-file repository containing a README, license, and a single Python script (exploi-git.py). The Python file is the sole code artifact and entry point. It is a self-contained educational proof-of-concept for CVE-2026-3854, modeling GitHub's vulnerable X-Stat header construction/parsing logic entirely in memory. The script defines baseline X-Stat fields, a vulnerable header builder that concatenates push options with semicolons, a parser that honors the last occurrence of duplicate keys, and a patched sanitizer that percent-encodes semicolons. It then runs three demos: (1) basic injection overriding rails_env from production to staging, (2) a conceptual multi-step RCE chain that changes rails_env, custom_hooks_dir, repo_pre_receive_hooks, and enterprise_mode to show how unsandboxed hook execution could occur, and (3) patched behavior showing the injection is neutralized. It also prints a conceptual git push command and external references. No live exploitation occurs: there are no network connections, no subprocess execution, and no file writes. The exploit capability is therefore demonstrative rather than operational, but it clearly documents the attack path and the critical fields/paths involved.

lysophavin18Disclosed Apr 29, 2026pythonmarkdownnetworkweb
EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
GitHubEnterprise Serverapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

ACTIVITY FEED

Recent activity

240 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity192

Community discussion across Reddit, Mastodon, and other social sources.