CVE-2024-53263 Git LFS permits exfiltration of credentials via crafted HTTP URLs
Attackers can exfiltrate Git credentials by injecting control characters into HTTP URLs, affecting all Git LFS users.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-53263?
CVE-2024-53263 is a high-severity vulnerability in git-lfs, published on 14 Jan 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
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.
Weakness: CWE-74
Which versions are affected by CVE-2024-53263?
7 open source packages ship an affected version, including github.com/git-lfs/git-lfs, git-lfs and github.com/git-lfs/git-lfs/v3.
| Package | Affected | Fixed in |
|---|---|---|
github.com/git-lfs/git-lfs Go | From 0.1.0 | None |
github.com/git-lfs/git-lfs Go | From 0.1.0 to 3.0.0 | None |
github.com/git-lfs/git-lfs Go | From 0.1.0 to 3.0.0 | None |
git-lfs Bitnami | From 0.1.0 | 3.6.1 |
github.com/git-lfs/git-lfs/v3 Go | From 3.0.0 | 3.6.1 |
github.com/git-lfs/git-lfs/v3 Go | From 3.0.0 | 3.6.1 |
1 more packages
github.com/git-lfs/git-lfs/v3 Go | From 3.0.0 | 3.6.1 |
Linux distribution packages (33)
git-lfs AlmaLinux:8 | All versions | 3.4.1-4.el8_10 |
git-lfs AlmaLinux:9 | All versions | 3.4.1-4.el9_5 |
git-lfs Red Hat:enterprise_linux:8::appstream | All versions | 0:3.4.1-4.el8_10 |
git-lfs-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:3.4.1-4.el8_10 |
git-lfs-debugsource Red Hat:enterprise_linux:8::appstream | All versions | 0:3.4.1-4.el8_10 |
git-lfs Red Hat:enterprise_linux:9::appstream | All versions | 0:3.4.1-4.el9_5 |
git-lfs-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:3.4.1-4.el9_5 |
git-lfs-debugsource Red Hat:enterprise_linux:9::appstream | All versions | 0:3.4.1-4.el9_5 |
git-lfs Red Hat:rhel_aus:8.4::appstream | All versions | 0:2.13.3-3.el8_4.1 |
git-lfs-debuginfo Red Hat:rhel_aus:8.4::appstream | All versions | 0:2.13.3-3.el8_4.1 |
git-lfs-debugsource Red Hat:rhel_aus:8.4::appstream | All versions | 0:2.13.3-3.el8_4.1 |
git-lfs Red Hat:rhel_aus:8.6::appstream | All versions | 0:2.13.3-3.el8_6.3 |
git-lfs-debuginfo Red Hat:rhel_aus:8.6::appstream | All versions | 0:2.13.3-3.el8_6.3 |
git-lfs-debugsource Red Hat:rhel_aus:8.6::appstream | All versions | 0:2.13.3-3.el8_6.3 |
git-lfs Red Hat:rhel_e4s:8.4::appstream | All versions | 0:2.13.3-3.el8_4.1 |
git-lfs-debuginfo Red Hat:rhel_e4s:8.4::appstream | All versions | 0:2.13.3-3.el8_4.1 |
git-lfs-debugsource Red Hat:rhel_e4s:8.4::appstream | All versions | 0:2.13.3-3.el8_4.1 |
git-lfs Red Hat:rhel_e4s:8.6::appstream | All versions | 0:2.13.3-3.el8_6.3 |
git-lfs-debuginfo Red Hat:rhel_e4s:8.6::appstream | All versions | 0:2.13.3-3.el8_6.3 |
git-lfs-debugsource Red Hat:rhel_e4s:8.6::appstream | All versions | 0:2.13.3-3.el8_6.3 |
git-lfs Red Hat:rhel_e4s:9.0::appstream | All versions | 0:2.13.3-5.el9_0.3 |
git-lfs-debuginfo Red Hat:rhel_e4s:9.0::appstream | All versions | 0:2.13.3-5.el9_0.3 |
git-lfs-debugsource Red Hat:rhel_e4s:9.0::appstream | All versions | 0:2.13.3-5.el9_0.3 |
git-lfs Red Hat:rhel_eus:8.8::appstream | All versions | 0:3.2.0-2.el8_8.3 |
git-lfs-debuginfo Red Hat:rhel_eus:8.8::appstream | All versions | 0:3.2.0-2.el8_8.3 |
git-lfs-debugsource Red Hat:rhel_eus:8.8::appstream | All versions | 0:3.2.0-2.el8_8.3 |
git-lfs Red Hat:rhel_eus:9.2::appstream | All versions | 0:3.2.0-2.el9_2.2 |
git-lfs-debuginfo Red Hat:rhel_eus:9.2::appstream | All versions | 0:3.2.0-2.el9_2.2 |
git-lfs-debugsource Red Hat:rhel_eus:9.2::appstream | All versions | 0:3.2.0-2.el9_2.2 |
git-lfs Red Hat:rhel_eus:9.4::appstream | All versions | 0:3.4.1-4.el9_4.1 |
git-lfs-debuginfo Red Hat:rhel_eus:9.4::appstream | All versions | 0:3.4.1-4.el9_4.1 |
git-lfs-debugsource Red Hat:rhel_eus:9.4::appstream | All versions | 0:3.4.1-4.el9_4.1 |
git-lfs Red Hat:rhel_tus:8.4::appstream | All versions | 0:2.13.3-3.el8_4.1 |
How do I fix CVE-2024-53263?
Upgrade to a fixed version.
Is CVE-2024-53263 being exploited?
There is no known exploitation of CVE-2024-53263 in the wild and no public exploit code.
Sources
Also known as ALSA-2025:0673, ALSA-2025:0845, AZL-55644, AZL-55670, BIT-git-lfs-2024-53263, CLSA-2025-1762867600 and 19 more.