---
title: Git LFS: cloning or fetching from a malicious repository can run arbitrary commands through crafted .lfsconfig or submodule settings; all versions before 3.8.1 affected | ctxsec
url: https://ctxsec.com/items/git-lfs-3-8-1-four-cves-malicious-repo-lfsconfig-and-submodule-config-can-run-arbitrary-commands-advisories-published-nov-20
description: "The Git LFS project published four advisories, now in the GitHub Advisory Database, for flaws fixed in v3.8.1. CVE-2026-105803: Git LFS doesn't correctly filter keys in a repository's .lfsconfig, so a malicious repo can configure a custom transfer command that runs when objects are fetched (all versions since 1.3.0; no workaround other than disabling Git LFS). CVE-2026-105802: line-feed characters in a submodule's configuration can smuggle options that execute a program when fetching or adding objects (since 0.6.0). CVE-2026-69260: SSH URL paths weren't quoted, so servers that pass Git LFS's remote commands to a shell can be made to run commands. CVE-2026-69261: Cookie headers could be forwarded to another host after a redirect. The 2.x line (through 2.13.3) gets no fix."
status: "official (Git LFS security advisories, published to the GitHub Advisory Database Nov 20, 2026; fixes in v3.8.1, released Oct 22, 2026)"
published: 2026-11-20
---

> The Git LFS project published four advisories, now in the GitHub Advisory Database, for flaws fixed in v3.8.1. CVE-2026-105803: Git LFS doesn't correctly filter keys in a repository's .lfsconfig, so a malicious repo can configure a custom transfer command that runs when objects are fetched (all versions since 1.3.0; no workaround other than disabling Git LFS). CVE-2026-105802: line-feed characters in a submodule's configuration can smuggle options that execute a program when fetching or adding objects (since 0.6.0). CVE-2026-69260: SSH URL paths weren't quoted, so servers that pass Git LFS's remote commands to a shell can be made to run commands. CVE-2026-69261: Cookie headers could be forwarded to another host after a redirect. The 2.x line (through 2.13.3) gets no fix.

[← Cybersecurity News](/news) · [markdown](/items/git-lfs-3-8-1-four-cves-malicious-repo-lfsconfig-and-submodule-config-can-run-arbitrary-commands-advisories-published-nov-20.md)

official (Git LFS security advisories, published to the GitHub Advisory Database Nov 20, 2026; fixes in v3.8.1, released Oct 22, 2026)

2026-11-20 · published here

2026-11-21 7:40 PM ET

### Git LFS: cloning or fetching from a malicious repository can run arbitrary commands through crafted .lfsconfig or submodule settings; all versions before 3.8.1 affected

- **Upgrade** developer machines, CI runners and build images to Git LFS 3.8.1; check copies bundled with Git installers and IDEs.
- **Until then:** don't clone untrusted repositories with LFS enabled; for CVE-2026-105802 the advisory's workaround is to disable `fetch.recurseSubmodules` and `submodule.recurse` and not run `git submodule init`; for SSH, set `lfs.sshTransfer=never`.

Sources: [Git LFS v3.8.1 release notes (CVE-2026-69260, -69261, -105802, -105803)](https://github.com/git-lfs/git-lfs/releases/tag/v3.8.1) · [GitHub Advisory GHSA-x72p-hmqp-46hw: Git LFS may execute arbitrary commands via crafted Git LFS configurations (CVE-2026-105803)](https://github.com/advisories/GHSA-x72p-hmqp-46hw) · [GitHub Advisory GHSA-xrgv-7vx6-5vx6: Git LFS may execute arbitrary commands via crafted Git configurations (CVE-2026-105802)](https://github.com/advisories/GHSA-xrgv-7vx6-5vx6)
