Input validation error in git-lfs - CVE-2024-53263

 

Input validation error in git-lfs - CVE-2024-53263

Published: January 16, 2025


Vulnerability identifier: #VU102873
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-53263
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to gain access to sensitive information.

The vulnerability exists due to insufficient validation of CR/LF characters in URLs. 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 A remote attacker can pass specially crafted URL to the application and obtain credentials.


Affected software

git-lfs
Debian Linux
Anolis OS
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Ubuntu
Fedora
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
git-lfs (Ubuntu package)
git-lfs (Red Hat package)
git-lfs (Debian package)
git-lfs
git-lfs-doc
Red Hat OpenShift Container Platform

How to mitigate CVE-2024-53263

Install updates from vendor's website.

git-lfs - update to 3.6.1
git-lfs (Ubuntu package) - addressed in versions 2.3.4-1ubuntu0.1~esm1, 2.9.2-1ubuntu0.1~esm2, 3.0.2-1ubuntu0.3+esm2, 3.4.1-1ubuntu0.3+esm2, 3.6.1-1ubuntu0.1
git-lfs (Red Hat package) - addressed in versions 2.13.3-3.el8_4.1, 2.13.3-3.el8_6.3, 2.13.3-5.el9_0.3, 3.2.0-2.el8_8.3, 3.2.0-2.el9_2.2, 3.4.1-4.el8_10, 3.4.1-4.el9_4.1, 3.4.1-4.el9_5
git-lfs (Debian package) - update to 3.3.0-1+deb12u1
git-lfs - addressed in versions 3.4.1-4.0.1, 3.6.1-1
git-lfs-doc - addressed in versions 3.4.1-4.0.1, 3.6.1-1
git-lfs - addressed in versions 3.6.1-1.fc40, 3.6.1-1.fc41
Red Hat OpenShift Container Platform - addressed in versions 4.12.72, 4.14.48, 4.17.15

External References

Related Security Bulletins