Vulnerability · Published Jan 14, 2025 · Assigned by GitHub_M
CVE-2024-53263Git LFS permits exfiltration of credentials via crafted HTTP URLs
High 8.5
In plain English
A high-severity injection in git-lfs from git-lfs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 65% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Git LFS is a Git extension for versioning large files. 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. This problem exists in all previous versions and is patched in v3.6.1. All users should upgrade to v3.6.1. There are no workarounds known at this time.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | git-lfs | 3.4.1-4.el8_10 | ALSA-2025:0845 |
| AlmaLinux:9 | git-lfs | 3.4.1-4.el9_5 | ALSA-2025:0673 |
| Debian:12 | git-lfs | 3.3.0-1+deb12u1 | DSA-5849-1 |
| Debian:12 | git-lfs | 3.3.0-1+deb12u1 | DEBIAN-CVE-2024-53263 |
| Debian:13 | git-lfs | 3.5.0-2 | DEBIAN-CVE-2024-53263 |
| Debian:14 | git-lfs | 3.5.0-2 | DEBIAN-CVE-2024-53263 |
| Go | github.com/git-lfs/git-lfs | no fix listed | GO-2025-3390 |
| Go | github.com/git-lfs/git-lfs | no fix listed | GHSA-q6r2-x2cc-vrp7 |
| Go | github.com/git-lfs/git-lfs/v3 | 3.6.1 | GO-2025-3390 |
| Go | github.com/git-lfs/git-lfs/v3 | 3.6.1 | GHSA-q6r2-x2cc-vrp7 |
| Rocky Linux:8 | git-lfs | 0:3.4.1-4.el8_10 | RLSA-2025:0845 |
| Rocky Linux:9 | git-lfs | 0:3.4.1-4.el9_4 | RLSA-2025:0673 |
| Ubuntu:25.10 | git-lfs | 3.6.1-1ubuntu0.1 | USN-7977-1 |
Affected products (as reported)
Weakness: CWE-74 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
References
- https://github.com/git-lfs/git-lfs/security/advisories/GHSA-q6r2-x2cc-vrp7 x_refsource_CONFIRM
- https://github.com/git-lfs/git-lfs/commit/0345b6f816e611d050c0df67b61f0022916a1c90 x_refsource_MISC
- https://github.com/git-lfs/git-lfs/releases/tag/v3.6.1 x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2025/01/msg00022.html