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/googlesky/cve-2026-105803
Code AnalysisExploitationCommand and ControlLabs & Practice
GitHubgooglesky/cve-2026-105803

CVE-2026-105803

Proof-of-concept and differential lab for CVE-2026-105803: a crafted .lfsconfig key bypasses Git LFS safe-key filtering and an unanchored regex to register an attacker-chosen transfer binary.

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-105803 — Git LFS: .lfsconfig crafted option keys register an attacker-chosen transfer binary (unanchored regex)

License: MIT Research status: validated

CVECVE-2026-105803
ComponentGit LFS — tq/custom.go (configureCustomAdapters), config/git_fetcher.go (readGitConfig)
Affected1.3.0 through 3.8.0
Fixed in3.8.1 — commits 62a727e7/c5b3bff4 (anchored regex), 1ecddd43/45c0c51c (access keys), 5182fde/dcfb09ff (remote keys); GHSA-x72p-hmqp-46hw
CWECWE-777 (Regular Expression without Anchors), CWE-1286 (Improper Validation of Syntactic Correctness of Input)
ImpactA malicious repository's .lfsconfig carries a crafted key that passes the safe-key filter and mimics a custom-transfer option, causing Git LFS to register and execute an attacker-selected command/binary while fetching objects
VectorRepository-controlled configuration — cloning/fetching from a hostile repo
Trigger.lfsconfig key lfs.customtransfer.evil.path.access = /tmp/evil-transfer

The vulnerable custom-transfer matcher used an unanchored regular expression:

// v3.8.0, tq/custom.go configureCustomAdapters()
pathRegex := regexp.MustCompile(`lfs\.((?i)customtransfer\.([^.]+))\.path`)

The fix anchors it to the complete key:

// v3.8.1
pathRegex := regexp.MustCompile(`\Alfs\.((?i)customtransfer\.([^.]+))\.path\z`)

1. Root cause

Two defects chain into command execution from a repository-controlled .lfsconfig:

  1. Safe-key filter bypass. .lfsconfig is parsed with onlySafeKeys=true; keys ending in .access are treated as LFS access configs. The pre-fix matcher accepted any *.access key, and even the tightened matcher accepts lfs.customtransfer.evil.path.access because it starts with lfs and ends with access. The crafted key therefore survives the filter on both versions.
  2. Unanchored regex. configureCustomAdapters scans every config key with lfs\.customtransfer\.([^.]+)\.path — no anchors. The substring lfs.customtransfer.evil.path embedded inside the .access-suffixed key matches, so the adapter named evil is registered with the attacker-supplied value as its executable path. Git LFS runs that binary as a custom transfer agent when fetching objects.

The fix anchors the regex (\A...\z), so only a complete, exact lfs.customtransfer.<name>.path key registers an adapter; the companion commits tighten access/remote key matching in readGitConfig.

2. Reproduction environment

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

In-package Go test binaries call the real upstream code from each tag: config.readGitConfig (safe-key filter, /keys) and the tq manifest/adapter setup (configureCustomAdapters, /transfer). 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        # cve105803lab network: lfs3-vuln / lfs3-fixed
./run-lab.sh sweep
./run-lab.sh down

4. The PoC

poc/poc.py (stdlib only):

  • check — exit 1 when the crafted key registers the evil transfer adapter, 0 when rejected; 3 no worker, 2 unreachable.
  • exploit — narrated chain: safe-key filter acceptance → unanchored regex match → attacker binary registered for execution on fetch.
  • probe — key-shape matrix (exact / access suffix / extra prefix / remote prefix) plus the non-LFS *.access filter check.
  • mitigation — 3.8.1 / anchored regex.

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

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

5. Expected results

key shapelfs3-vuln (3.8.0)lfs3-fixed (3.8.1)
lfs.customtransfer.evil.path (exact, legit)adapter eviladapter evil
lfs.customtransfer.evil.path.accessadapter evil → /tmp/evil-transferno adapter
extra.lfs.customtransfer.evil.path.accessadapter evilno adapter
remote.lfs.customtransfer.evil.pathadapter evilno adapter
other.example.access safe-filter acceptanceacceptedrejected

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 cve105803lab network.
  • Real-world exploitation requires a victim to clone/fetch from a hostile repository whose .lfsconfig carries the crafted key; the registered binary executes during object transfer.

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

The fixed line rejects every crafted key shape (access suffix, extra prefix, remote prefix) — only the exact legitimate key registers an adapter. The anchored regex closes the substring-match bypass, and non-LFS *.access keys are rejected by the tightened safe-key filter.

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 harnesses (config + tq), per-tag API
lab/service.py        HTTP wrapper (POST /keys, POST /transfer)
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-105803
  • GitHub advisory — https://github.com/git-lfs/git-lfs/security/advisories/GHSA-x72p-hmqp-46hw
  • Fix commits — https://github.com/git-lfs/git-lfs/commit/62a727e7af1b0de0237c4d288ec0e977613df064 · https://github.com/git-lfs/git-lfs/commit/1ecddd431e63c551ae11c153df0e07f37d2b44ef
  • Fixed release — https://github.com/git-lfs/git-lfs/releases/tag/v3.8.1
Download Tool