Critical GitHub Flaw Could Let Hackers Execute Malicious Code and Access Millions of Private Repositories

cyberpress.org

CVE-2026-3854 8.8 HIGH EPSS 1.7% no known exploitation

A critical command injection defect, tracked as CVE-2026-3854 (CVSS 8.7), let any authenticated user achieve remote code execution on GitHub’s backend with one crafted git push.

Wiz Research reported it, and it affected GitHub.com and GitHub Enterprise Server (GHES). The root cause is delimiter injection in GitHub’s internal git pipeline. The babeld proxy copied user-supplied push option values verbatim into the semicolon-delimited X-Stat header.

Because the header parser used last-write-wins semantics, an attacker could embed a semicolon and append forged key=value pairs that overrode legitimate security metadata.

Critical GitHub Flaw

The gitrpcd service performs no authentication of its own and trusts every X-Stat field. Injected values therefore reached the Go-based pre-receive hook binary as authoritative.

The same trust gap appears in multiple flaws in Anthropic’s Git MCP server that enabled code execution, where attacker-controlled input abused git primitives.

 Vulnerability overview (Source: WIZ)

Wiz chained three injections to reach code execution. First, a non-production rails_env value switched the hook runner from its sandboxed path to direct execution.

Second, custom_hooks_dir redirected the hook lookup directory. Third, a forged repo_pre_receive_hooks entry used path traversal to resolve an arbitrary binary, which ran as the git service user with no sandbox.

Custom hooks are unreachable there by default, so the researchers injected the enterprise-mode flag to expose that path.

They then executed commands on a shared storage node. The git user on those nodes can read every hosted repository, and Wiz counted millions of repository index entries across two nodes.

It did not read other tenants’ data. This kind of cross-tenant exposure echoes the CodeRabbit production RCE that exposed write access to one million repositories.

AI-assisted reverse engineering drove the discovery. Wiz used IDA MCP to decompile GitHub’s closed-source binaries and reconstruct the internal protocol.

It called this one of the first critical flaws found in closed-source binaries with AI. The pattern matches Claude uncovering a 13-year-old RCE in Apache ActiveMQ within minutes, and it shortens the time between code review and exploit development.

GitHub received the report on March 4, 2026. It validated the issue within about 40 minutes and deployed a GitHub.com fix at 7:00 p.m. UTC the same day.

Its telemetry showed that only the Wiz researchers’ own testing triggered the anomalous code path, and no customer data was accessed. Wiz assigned the CVE and shipped GHES patches on March 10, and public disclosure followed on April 28.

Affected Versions and Fixes

Wiz’s advisory listed GHES 3.19.1 and earlier as vulnerable, with fixes in 3.14.24, 3.15.19, 3.16.15, 3.17.12, 3.18.6 and 3.19.3. GitHub’s updated guidance points to newer patch releases, listed below.

BranchGitHub-recommended minimum
3.143.14.25
3.153.15.20
3.163.16.16
3.173.17.13
3.183.18.7
3.193.19.4
3.203.20.0

Wiz’s data at disclosure showed 88% of GHES instances were still unpatched. Administrators should upgrade to the latest patch release immediately.

They should also review /var/log/github-audit.log for push operations whose push options contain a semicolon. GitHub.com and GitHub Enterprise Cloud need no action.

Join 16,000+ SOC teams using ANY.RUN to streamline threat investigations and reduce manual effort. Explore for your team 

The post Critical GitHub Flaw Could Let Hackers Execute Malicious Code and Access Millions of Private Repositories appeared first on Cyber Security News.

Read at cyberpress.org ↗

Filed under appsecvuln

Mentions (1)
Reader notes

Notes are held for moderation. No account needed.