Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/lysophavin18/cve-2026-3854-poc
Vulnerability AnalysisCode AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & Education
GitHublysophavin18/cve-2026-3854-poc

CVE-2026-3854-PoC

GitHub RCE via X-Stat Push Option Injection

View Repository
2166 months agoNot yet reviewed
Share

CVE-2026-3854 PoC — GitHub RCE via X-Stat Push Option Injection

For educational and authorized security research purposes only.
Do not use against any system without explicit written permission.


Overview

CVE-2026-3854 is a Remote Code Execution vulnerability in GitHub Enterprise Server's (and GitHub.com's) git push pipeline.

When a client supplies push options (git push -o), GitHub's internal Ruby code builds an X-Stat header by concatenating each option value with semicolons as field delimiters. Because values were inserted verbatim (without sanitisation), an attacker could embed semicolons in a push option to inject arbitrary key-value fields into the header and override security-critical settings — ultimately achieving unsandboxed RCE as the git user.

Vulnerability root cause

X-Stat: repo_id=12345;user_id=alice;rails_env=production;...;push_option_0=<USER INPUT>

Injecting normal_value;rails_env=staging as the push option value turns into:

...;push_option_0=normal_value;rails_env=staging

The parser takes the last occurrence of each key, so rails_env is now staging (unsandboxed), overriding the legitimate production value set earlier.


Requirements

  • Python 3.10 or later (uses built-in list[str] / dict[str, str] type hints)
  • No third-party packages required

Usage

python3 exploi-git.py

The script runs three back-to-back demonstrations entirely in memory — no network connections, no shell commands, no file writes:

DemoWhat it shows
1Basic semicolon injection overriding rails_env
2Full 3-step conceptual RCE chain
3Patched behaviour — semicolons are percent-encoded and injection is neutralised

Patch

GitHub fixed the vulnerability by percent-encoding semicolons in push option values before inserting them into the X-Stat header:

normal_value;rails_env=staging  →  normal_value%3Brails_env=staging

This makes the semicolon a literal part of the value and breaks the injection.


References

  • Wiz Research blog post
  • GitHub Security Blog
  • NVD — CVE-2026-3854

Disclaimer

This repository is provided solely for educational purposes and to support authorized security research. The author(s) assume no responsibility for misuse. Always obtain explicit written permission before testing against any system you do not own.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    524
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    478
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    357
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    317
  • 5

    estorides

    grisuno/estorides

    Aggregates 99+ free OSINT sources in parallel, resolves entities into a knowledge graph, and exports STIX 2.1, MISP, or GraphML with LLM-assisted analysis.

    305
  • 6

    opencti

    opencti-platform/opencti

    Open Cyber Threat Intelligence Platform

    275

Explore all tools

Browse our collection of tools

View all tools →