CVE-2024-53263 Git LFS permits exfiltration of credentials via crafted HTTP URLs

High 8.5 Published Updated

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.

PackageAffectedFixed in
github.com/git-lfs/git-lfs GoFrom 0.1.0None
github.com/git-lfs/git-lfs GoFrom 0.1.0 to 3.0.0None
github.com/git-lfs/git-lfs GoFrom 0.1.0 to 3.0.0None
git-lfs BitnamiFrom 0.1.03.6.1
github.com/git-lfs/git-lfs/v3 GoFrom 3.0.03.6.1
github.com/git-lfs/git-lfs/v3 GoFrom 3.0.03.6.1
1 more packages
github.com/git-lfs/git-lfs/v3 GoFrom 3.0.03.6.1
Linux distribution packages (33)
git-lfs AlmaLinux:8All versions3.4.1-4.el8_10
git-lfs AlmaLinux:9All versions3.4.1-4.el9_5
git-lfs Red Hat:enterprise_linux:8::appstreamAll versions0:3.4.1-4.el8_10
git-lfs-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:3.4.1-4.el8_10
git-lfs-debugsource Red Hat:enterprise_linux:8::appstreamAll versions0:3.4.1-4.el8_10
git-lfs Red Hat:enterprise_linux:9::appstreamAll versions0:3.4.1-4.el9_5
git-lfs-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:3.4.1-4.el9_5
git-lfs-debugsource Red Hat:enterprise_linux:9::appstreamAll versions0:3.4.1-4.el9_5
git-lfs Red Hat:rhel_aus:8.4::appstreamAll versions0:2.13.3-3.el8_4.1
git-lfs-debuginfo Red Hat:rhel_aus:8.4::appstreamAll versions0:2.13.3-3.el8_4.1
git-lfs-debugsource Red Hat:rhel_aus:8.4::appstreamAll versions0:2.13.3-3.el8_4.1
git-lfs Red Hat:rhel_aus:8.6::appstreamAll versions0:2.13.3-3.el8_6.3
git-lfs-debuginfo Red Hat:rhel_aus:8.6::appstreamAll versions0:2.13.3-3.el8_6.3
git-lfs-debugsource Red Hat:rhel_aus:8.6::appstreamAll versions0:2.13.3-3.el8_6.3
git-lfs Red Hat:rhel_e4s:8.4::appstreamAll versions0:2.13.3-3.el8_4.1
git-lfs-debuginfo Red Hat:rhel_e4s:8.4::appstreamAll versions0:2.13.3-3.el8_4.1
git-lfs-debugsource Red Hat:rhel_e4s:8.4::appstreamAll versions0:2.13.3-3.el8_4.1
git-lfs Red Hat:rhel_e4s:8.6::appstreamAll versions0:2.13.3-3.el8_6.3
git-lfs-debuginfo Red Hat:rhel_e4s:8.6::appstreamAll versions0:2.13.3-3.el8_6.3
git-lfs-debugsource Red Hat:rhel_e4s:8.6::appstreamAll versions0:2.13.3-3.el8_6.3
git-lfs Red Hat:rhel_e4s:9.0::appstreamAll versions0:2.13.3-5.el9_0.3
git-lfs-debuginfo Red Hat:rhel_e4s:9.0::appstreamAll versions0:2.13.3-5.el9_0.3
git-lfs-debugsource Red Hat:rhel_e4s:9.0::appstreamAll versions0:2.13.3-5.el9_0.3
git-lfs Red Hat:rhel_eus:8.8::appstreamAll versions0:3.2.0-2.el8_8.3
git-lfs-debuginfo Red Hat:rhel_eus:8.8::appstreamAll versions0:3.2.0-2.el8_8.3
git-lfs-debugsource Red Hat:rhel_eus:8.8::appstreamAll versions0:3.2.0-2.el8_8.3
git-lfs Red Hat:rhel_eus:9.2::appstreamAll versions0:3.2.0-2.el9_2.2
git-lfs-debuginfo Red Hat:rhel_eus:9.2::appstreamAll versions0:3.2.0-2.el9_2.2
git-lfs-debugsource Red Hat:rhel_eus:9.2::appstreamAll versions0:3.2.0-2.el9_2.2
git-lfs Red Hat:rhel_eus:9.4::appstreamAll versions0:3.4.1-4.el9_4.1
git-lfs-debuginfo Red Hat:rhel_eus:9.4::appstreamAll versions0:3.4.1-4.el9_4.1
git-lfs-debugsource Red Hat:rhel_eus:9.4::appstreamAll versions0:3.4.1-4.el9_4.1
git-lfs Red Hat:rhel_tus:8.4::appstreamAll versions0: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.

Is CVE-2024-53263 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free