CVE-2026-3854 GitHub RCE Through X-Stat Push-Option Injectio...#331
Open
carlospolop wants to merge 1 commit into
Open
CVE-2026-3854 GitHub RCE Through X-Stat Push-Option Injectio...#331carlospolop wants to merge 1 commit into
carlospolop wants to merge 1 commit into
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://wiz.io/blog/github-rce-vulnerability-cve-2026-3854 Content Categories: Based on the analysis, this content was categorized under "Pentesting CI/CD > Github Security > Git Push Infrastructure and GHES Security, as a new page or subsection covering X-Stat delimiter injection, duplicate-key policy overrides, pre-receive hook sandbox bypass, and hook-path traversal". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
Overview
CVE-2026-3854 is an authenticated remote-code-execution vulnerability in the internal Git push infrastructure used by GitHub.com and GitHub Enterprise Server (GHES). It received a CVSS score of 8.7. Any authenticated user who could push to a repository could trigger the flaw with a single SSH-based
git pushusing a standard Git client.The vulnerability chained delimiter injection in an internal metadata header, last-write-...
🔧 Technical Details
Delimiter injection into trusted internal metadata: When an application serializes user-controlled strings into a delimiter-based protocol without escaping reserved characters, an attacker can terminate the intended field and append arbitrary fields. In this case, a semicolon inside
git push -oescapedpush_option_Nand injected additionalX-Statentries. If the parser accepts duplicate keys with last-write-wins behavior, an injected value appearing later can override authenticated security configuration. Similar protocols should reject reserved delimiters, use structured serialization, reject duplicate security fields, and treat all metadata derived from external input as untrusted.Configuration injection as a sandbox bypass: Security boundaries must not depend on mutable request metadata. Injecting a non-production
rails_envvalue changed the pre-receive hook runner from its sandboxed prod...🤖 Agent Actions
Updated
src/pentesting-ci-cd/github-security/README.md.Added a new subsection covering:
Also added references to:
Verification:
## Referencesremains at the end of the filemdbook buildcould not be run becausemdbookis not installed in this environment (/bin/sh: 1: mdbook: not found)This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.