HighGHSA-q6r2-x2cc-vrp7BIT-git-lfs-2024-53263CVE-2024-53263GO-2025-3390

Git LFS permits exfiltration of credentials via crafted HTTP URLs

Published 14 Jan 2025 · Updated 23 Jan 2025

Is your project on an affected github.com/git-lfs/git-lfs?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

Affected
>=0.1.0 <=3.0.0
Fixed in
No fix released
Affected
>=3.0.0 <3.6.1
Fixed in
3.6.1
Update to the fixed version for your release line, for example:go get github.com/git-lfs/git-lfs/v3@v3.6.1

Details

Impact

When Git LFS requests credentials from Git for a remote host, it passes portions of the host's URL to the git-credential(1) command without checking for embedded line-ending control characters, and then sends any credentials it receives back from the Git credential helper to the remote host. By inserting URL-encoded control characters such as line feed (LF) or carriage return (CR) characters into the URL, an attacker may be able to retrieve a user's Git credentials.

Patches

This problem exists in all previous versions and is patched in v3.6.1. All users should upgrade to v3.6.1.

Workarounds

There are no workarounds known at this time.

References

  • https://github.com/git-lfs/git-lfs/security/advisories/GHSA-q6r2-x2cc-vrp7
  • https://nvd.nist.gov/vuln/detail/CVE-2024-53263
  • https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-53263
  • https://github.com/git-lfs/git-lfs/releases/tag/v3.6.1
  • git-lfs/git-lfs@0345b6f816

For more information

If you have any questions or comments about this advisory:

Is GHSA-q6r2-x2cc-vrp7 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/git-lfs/git-lfs, and gives you the command that fixes it.

More advisories for github.com/git-lfs/git-lfs

  • LowCVE-2025-26625Git LFS may write to arbitrary files via crafted symlinks in github.com/git-lfs/git-lfs · 30 Oct 2025
  • HighCVE-2025-26625Git LFS may write to arbitrary files via crafted symlinks · 17 Oct 2025
  • HighCVE-2017-17831GitHub Git LFS Arbitrary command execution vulnerability · 14 May 2022
  • CriticalCVE-2022-24826Git LFS can execute a binary from the current directory on Windows · 22 Apr 2022
  • HighCVE-2021-21237Git LFS can execute a Git binary from the current directory on Windows · 15 Feb 2022
  • CriticalCVE-2020-27955Git LFS can execute a Git binary from the current directory · 11 Feb 2022
All 9 advisories for github.com/git-lfs/git-lfs

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.