---
title: Tip: update Git LFS to 3.8.1 on CI runners and build images too, since that's where untrusted repositories and pull requests get cloned | ctxsec
url: https://ctxsec.com/items/tip-git-lfs-3-8-1-update-ci-runners-and-build-images-not-just-laptops-and-dont-fetch-untrusted-repos-with-lfs
description: "The worst Git LFS bugs fire when you fetch from a malicious repository, which is exactly what CI does for forks and third-party code."
status: "guide (based on the Git LFS 3.8.1 advisories)"
published: 2026-11-21
---

> The worst Git LFS bugs fire when you fetch from a malicious repository, which is exactly what CI does for forks and third-party code.

[← Tips & Guides](/tips) · [markdown](/items/tip-git-lfs-3-8-1-update-ci-runners-and-build-images-not-just-laptops-and-dont-fetch-untrusted-repos-with-lfs.md)

guide (based on the Git LFS 3.8.1 advisories)

2026-11-21 7:40 PM ET

### Tip: update Git LFS to 3.8.1 on CI runners and build images too, since that's where untrusted repositories and pull requests get cloned

- Run `git lfs version` on runners and in base images; rebuild anything older than 3.8.1.
- For jobs that build untrusted code, skip LFS (`GIT_LFS_SKIP_SMUDGE=1`) unless you need it, and don't recurse submodules.

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)
