A repository file should not be able to choose the Git LFS transfer command
A repository file should not be able to choose the Git LFS transfer command Git LFS is designed to fetch large objects without asking the developer to think about transport details. CVE-2026-105803 affects versions 3.0
A repository file should not be able to choose the Git LFS transfer command
Git LFS is designed to fetch large objects without asking the developer to think about transport details. CVE-2026-105803 affects versions 3.0.0 through 3.8.0 and is fixed in 3.8.1. A malicious repository can use an .lfsconfig file to supply a configuration key that Git LFS fails to restrict correctly, causing it to invoke an attacker-controlled command or binary during object fetch.
How the configuration crosses the boundary
An .lfsconfig file belongs to the repository. It is useful for project-level settings, but it must not be treated as local trust. The advisory says Git LFS permits only a limited set of configuration options from that file and failed to filter keys with additional components. The attacker can mimic an option that selects a custom object transfer command. When the developer fetches objects, the command runs with that developer's privileges.
The mechanism is a configuration-injection problem. Repository-controlled text can reach a setting that names an executable, even though the same file is supposed to be restricted to endpoints and harmless project options. The 8.1 CVSS score reflects no privileges required and user interaction, with high confidentiality and integrity impact. A clone or fetch is enough to start the chain if the repository is reached and the vulnerable client processes the file.
Why CI and developer machines are both affected
The attacker does not need a production server. A developer laptop, a package-build runner, or a release pipeline may have repository tokens, cloud credentials, signing keys, and access to source. An LFS fetch is often automatic and hidden inside a larger checkout step. The user may never inspect the repository configuration before the command runs.
Restricting the issue to "phishing" would miss the supply-chain case. A dependency mirror, a fork, or a repository transferred to a new owner can change the content that a build fetches. If the pipeline uses a shared runner with broad credentials, the result is a credential-theft opportunity at the point where source is prepared. The advisory does not claim that every repository is malicious or that a remote service is compromised; it describes what the vulnerable client does with a crafted configuration.
Remediation
Upgrade Git LFS to 3.8.1 or later on developer systems, build images, and release runners. A central package update is not sufficient if an older binary is bundled in a CI action or cached in a container layer. Inventory the actual git-lfs executable used by checkout jobs, then verify the version inside the same process that fetches objects.
Do not fetch from an untrusted repository with a long-lived personal token. Use short-lived credentials, scoped repository access, and a separate service account for build jobs. Set the environment so that repository-level transfer configuration cannot select custom commands, and review the effective configuration before enabling a new mirror.
Search logs and endpoint telemetry for LFS transfer processes spawned during checkout, especially commands outside the expected Git LFS binary. If a vulnerable client fetched an untrusted repository, inspect the parent process, command line, network connections, and child processes from that checkout. Rotate any credential that was available to the process if execution cannot be ruled out. Preserve the repository and the fetched configuration for investigation, but do not run another fetch from the same untrusted source.
References
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.