Git LFS flaw can trigger arbitrary command execution from malicious repositories

  • Git LFS
  • Git configuration
  • Submodules

GitHub published an advisory on November 20, 2026

Versions 0.6.0–2.13.3 and 3.0.0–3.8.0 are affected

Version 3.8.1 fixes the issue

GitHub published an advisory on November 20, 2026, warning that Git LFS may execute arbitrary commands or binaries when fetching objects from a malicious repository.

The issue concerns Git configuration options for a submodule, a component that allows one repository to include another. Git LFS does not check for embedded line-feed characters in configuration values, which an attacker could use to make a value appear to contain options that trigger command execution.

The vulnerability affects Git LFS versions from 0.6.0 up to 2.13.3, and from 3.0.0 up to 3.8.0. Version 3.8.1 resolves the issue by using an unambiguous format to read and parse Git configuration options.

As a workaround, the advisory recommends disabling submodule recursion and avoiding submodule initialization.