Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-22004-Git-LFS-Pointer-Poisoning-Supply-Chain- — Proof-of-concept for Git LFS pointer poisoning, with Bash and Python scripts that create a malicious repository, simulate a rogue LFS server, and trigger code execution. | Kitploit
Tools/GitHubGitHub/george0papasotiriou/cve-2026-22004-git-lfs-pointer-poisoning-supply-chain-
Vulnerability AnalysisExploitationSupply Chain SecurityMisconfigurationRed TeamingPayload Development
GitHubgeorge0papasotiriou/cve-2026-22004-git-lfs-pointer-poisoning-supply-chain-

CVE-2026-22004-Git-LFS-Pointer-Poisoning-Supply-Chain-

Proof-of-concept for Git LFS pointer poisoning, with Bash and Python scripts that create a malicious repository, simulate a rogue LFS server, and trigger code execution.

View Repository
51 month agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-22004 – Git LFS Pointer Poisoning (Supply Chain)

Program Code (Bash + Python)

root@kitploit:~
# create_malicious_repo.sh - Sets up a repo with poisoned LFS pointer
git init
git lfs track "*.bin"
echo "version https://git-lfs.github.com/spec/v1
oid sha256:4142434445464748494a4b4c4d4e4f505152535455565758595a616263646566
size 4" > malware.bin
git add .gitattributes malware.bin
git commit -m "Add LFS file"

CVE-2026-22004 – Git LFS Pointer Poisoning (Supply Chain Attack)

Severity: Critical

Overview

A repository uses Git LFS but does not pin the LFS endpoint or verify object hashes after download. An attacker who compromises the LFS server (or can man‑in‑the‑middle) can replace the large file with a malicious one, and the clone will automatically download and potentially execute it.

Vulnerability Details

  • Type: Supply Chain / Man‑in‑the‑Middle
  • Impact: Code execution on developer machines.
  • Root Cause: Git LFS trusts the remote LFS store; if the pointer file is modified or the LFS server is malicious, the fetched object may differ from the expected hash without warning.

Exploit Demonstration

  1. Run the setup script to create a repo with LFS.
  2. Simulate a rogue LFS server that returns a trojan.
  3. Clone the repo → the malicious object is fetched.
root@kitploit:~
bash create_malicious_repo.sh
# Then simulate rogue LFS server
Download Tool