CVE-2024-53263: Git LFS permits exfiltration of credentials via crafted HTTP URLs
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.
Published Jan 14, 2025 · Updated Jan 23, 2025
Affected packages
github.com/git-lfs/git-lfs/v3
- Ecosystem
- Go
- Affected
- >= 3.0.0, <= 3.6.0
- Fixed in
- 3.6.1
- Check
go list -m github.com/git-lfs/git-lfs/v3
github.com/git-lfs/git-lfs
- Ecosystem
- Go
- Affected
- >= 0.1.0, <= 3.0.0
- Fixed in
- No patched version yet
- Check
go list -m github.com/git-lfs/git-lfs
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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:
- For general questions, start a discussion in the Git LFS discussion forum.
- For reports of additional vulnerabilities, please follow the Git LFS security reporting policy.
Credited to Ry0taK.
References
- https://github.com/git-lfs/git-lfs/security/advisories/GHSA-q6r2-x2cc-vrp7
- https://github.com/git-lfs/git-lfs/commit/0345b6f816e611d050c0df67b61f0022916a1c90
- https://github.com/git-lfs/git-lfs/releases/tag/v3.6.1
- https://nvd.nist.gov/vuln/detail/CVE-2024-53263
- https://pkg.go.dev/vuln/GO-2025-3390
- https://lists.debian.org/debian-lts-announce/2025/01/msg00022.html
- https://github.com/advisories/GHSA-q6r2-x2cc-vrp7
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-105802
Git LFS may execute arbitrary commands via crafted Git configurations
high8.6No fixNov 20, 2026CVE-2026-105803
Git LFS may execute arbitrary commands via crafted Git LFS configurations
high8.6No fixNov 20, 2026CVE-2026-69260
Git LFS may attempt arbitrary remote commands via crafted SSH URLs
high7.6No fixNov 20, 2026CVE-2026-69261
Git LFS may leak HTTP headers after redirections
high7.6No fixNov 20, 2026CVE-2025-26625
Git LFS may write to arbitrary files via crafted symlinks
high8.6Oct 17, 2025
