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-105802 — PoC and lab for CVE-2026-105802: Git LFS submodule config LF injection forges options and executes an attacker-chosen transfer binary, with vuln/fixed differential harness. | Kitploit
Tools/GitHubGitHub/googlesky/cve-2026-105802
Vulnerability AnalysisCode AnalysisExploitationSupply Chain SecurityLabs & Practice
GitHubgooglesky/cve-2026-105802

CVE-2026-105802

PoC and lab for CVE-2026-105802: Git LFS submodule config LF injection forges options and executes an attacker-chosen transfer binary, with vuln/fixed differential harness.

View Repository
3 days agoNot yet reviewed

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.

    897
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    853
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    668
  • 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.

    448
  • 5

    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.

    417
  • 6

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    400

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-105802 — Git LFS: submodule config LF injection forges options and executes an attacker-chosen binary

License: MIT Research status: validated

CVECVE-2026-105802
ComponentGit LFS — git/config.go (ParseConfigLines / FileSource / gitConfig), tq/custom.go
Affected0.6.0 through 3.8.0
Fixed in3.8.1 — commit 1b2672aa (GHSA-xrgv-7vx6-5vx6)
CWECWE-144 (Improper Neutralization of Line Delimiters)
ImpactA malicious repository embeds a line feed in a submodule Git configuration value; the newline-split parser turns it into a forged config entry that mimics an LFS option, causing Git LFS to execute an attacker-controlled command/binary while fetching or adding objects
VectorRepository-controlled submodule configuration — cloning/fetching a hostile repo with submodules
Triggersubmodule url = "https://example.com/repo\nlfs.customtransfer.pwn.path=/tmp/evil-transfer"

The vulnerable parser split git config -l output on newlines:

// v3.8.0, git/config.go
entries := strings.Split(config, "\n")
...
fields := strings.SplitN(e, "=", 2)
// and the config was read with: gitConfig("-l", "-f", filename)

The fix reads NUL-separated output and parses entries unambiguously:

// v3.8.1 (commit 1b2672aa)
entries := strings.Split(config, "\x00")
...
fields := strings.SplitN(e, "\n", 2)
// read with: gitConfig("-l", "-z", "-f", filename)

1. Root cause

Git config values may contain literal line feeds (a quoted \n escape in a config file). git config -l prints values verbatim, so an embedded LF is indistinguishable from an entry separator in its output. The pre-fix parser split that output on \n and then on =, so the text after the embedded LF became a new config entry. A malicious submodule definition such as

[submodule "evil"]
    url = "https://example.com/repo\nlfs.customtransfer.pwn.path=/tmp/evil-transfer"

therefore injects the option lfs.customtransfer.pwn.path with an attacker-chosen value. The tq package registers that value as a custom transfer adapter executable, which Git LFS runs during object transfer. The fix switches every config source to git config -l -z (NUL-separated entries, key\nvalue within each entry), so embedded LFs remain part of the value and cannot forge entries.

2. Reproduction environment

serviceimagerole
lfs2-vulncve-2026-105802:vulnGit LFS v3.8.0
lfs2-fixedcve-2026-105802:fixedGit LFS v3.8.1 (vendor fix)
poccve-2026-105802-poc:localstdlib-only Python driver

An in-package Go test binary runs the real pipeline from each tag: git config --includes -l [-z] -f <crafted file> → the real ParseConfigLines / ParseConfigEntries → the real tq manifest/adapter setup. Both sides differ only in the Git LFS version.

3. Running the environment

./run-lab.sh build     # builds both tags with Go 1.25
./run-lab.sh up        # cve105802lab network: lfs2-vuln / lfs2-fixed
./run-lab.sh sweep
./run-lab.sh down

4. The PoC

poc/poc.py (stdlib only):

  • check — exit 1 when the embedded LF forges a config entry / transfer adapter, 0 when it stays inside the value; 3 no worker, 2 unreachable.
  • exploit — narrated chain: malicious submodule value → newline-split forgery → attacker binary registered for execution on fetch.
  • probe — injection matrix (transfer-path, lfs.url) plus a benign submodule control.
  • mitigation — 3.8.1 / commit 1b2672aa.

A standalone full-chain exploit ships at exploit/exploit.py:

python3 exploit/exploit.py --host=lfs2-vuln
# exit 1 on confirmed forgery/adapter registration, 0 on a safe target

5. Expected results

observationlfs2-vuln (3.8.0)lfs2-fixed (3.8.1)
parsed keyslfs.customtransfer.pwn.path, submodule.evil.urlsubmodule.evil.url only
transfer adapterpwn → /tmp/evil-transfernone
lfs.url injection variantforged lfs.url entrystays inside value
benign submoduleunchangedunchanged

Captured runs: evidence/check-*-run.txt, evidence/exploit-*-run.txt, evidence/probe-*-run.txt, evidence/mitigation-*-run.txt, evidence/exploit-standalone-run.txt, evidence/exploit-standalone-fixed-run.txt, evidence/versions.txt, evidence/0day-sweep.txt.

6. Environment preconditions

  • Podman (or Docker); bounded containers on the isolated cve105802lab network; git present in the lab runtime (the pipeline execs it).
  • Real-world exploitation requires a victim to clone/fetch a hostile repository whose submodule configuration carries the embedded LF.

7. Additional findings (0-day sweep on the fixed line)

The fixed line parses NUL-separated entries; embedded LFs in submodule values (transfer-path injection, lfs.url injection) stay inside the value and forge no config entry. Benign submodule config is unchanged.

8. Repository layout

README.md             this write-up
run-lab.sh            environment driver (build / up / sweep / down)
Makefile              convenience targets
poc/poc.py            the PoC (check / exploit / probe / mitigation)
exploit/exploit.py    standalone full-chain exploit
lab/lab.Dockerfile    builds both upstream tags
lab/harness/          in-package Go harness (tq), per-tag parsing API
lab/service.py        HTTP wrapper (POST /parse)
evidence/             captured runs of every mode on both sides
TRACKING.md           excluded (working record)

9. References

  • CVE record — https://www.cve.org/CVERecord?id=CVE-2026-105802
  • GitHub advisory — https://github.com/git-lfs/git-lfs/security/advisories/GHSA-xrgv-7vx6-5vx6
  • Fix commit — https://github.com/git-lfs/git-lfs/commit/1b2672aaa29016e8004369df1406d2a73057f45f
  • Fixed release — https://github.com/git-lfs/git-lfs/releases/tag/v3.8.1
Download Tool