CVE-2026-105802

Git LFS may execute arbitrary commands via crafted Git configurations

High published · updated · also known as GHSA-XRGV-7VX6-5VX6

8.6
CVSS score out of 10 · NVD (github.com)

Description

Git LFS is a Git extension for versioning large files. From 0.6.0 until 3.8.1, Git LFS reads Git configuration options defined for a submodule without checking certain values for embedded line-ending control characters. A malicious repository can insert control characters such as line feed (LF) into those values to mimic options that cause Git LFS to execute an attacker-controlled command or binary while fetching or adding objects. This issue is fixed in version 3.8.1.

Affected products and versions

Product / packageEcosystem / vendorVersionsFixed inSource
github.com/git-lfs/git-lfs go >= 0.6.0, <= 2.13.3— GitHub
github.com/git-lfs/git-lfs/v3 go >= 3.0.0, < 3.8.13.8.1 GitHub

References