Executive Summary
Git LFS (Large File Storage) is vulnerable to a high-severity issue (CVE-2026-105803, CVSS 8.6) that allows attackers to execute arbitrary commands or binaries when fetching objects from a malicious repository. This is due to improper validation of configuration options defined in `.lfsconfig` files within Git repositories. The vulnerability impacts all versions from 1.3.0 up to 3.8.0, and it is fixed in version 3.8.1.
Technical Analysis
The vulnerability class of this issue is improper input validation, specifically related to how Git LFS handles configuration options in `.lfsconfig` files. An attacker can craft a malicious `.lfsconfig` file that defines configuration options with additional components, tricking Git LFS into interpreting them as commands for transferring objects. This allows an attacker to provide an arbitrary command that Git LFS will execute when fetching objects.
How It Gets Exploited
An attacker would exploit this vulnerability by creating a malicious Git repository with a specially crafted `.lfsconfig` file. When a user clones this repository using Git LFS, the attacker can execute an arbitrary command or binary on the user's system. The exploitation scenario involves:
- An attacker creating a malicious repository with a crafted `.lfsconfig` file.
- A user cloning the repository using Git LFS.
- Git LFS fetches objects and, upon failing to properly validate the configuration, executes the attacker's command.
Impact Assessment
The impact of this vulnerability is high, with a CVSS score of 8.6. It allows for arbitrary command execution, which can lead to a range of outcomes including data exfiltration, privilege escalation, and system compromise. All users of Git LFS from version 1.3.0 up to 3.8.0 are affected.
Recommended Actions
To mitigate this vulnerability, users should update Git LFS to version 3.8.1 or later. Additionally, users should be cautious when cloning repositories from untrusted sources and consider disabling Git LFS if it's not essential for their workflow. Implementing strict access controls and monitoring for suspicious Git LFS activity can also help detect potential exploitation attempts.
Sources
- GitHub Security Advisories: https://github.com/advisories/GHSA-x72p-hmqp-46hw
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-105803