Git LFS permits exfiltration of credentials via crafted HTTP URLs

Description

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.

Basic information

Type
reviewed
Severity
high
Advisory on GitHub
Open advisory ↗
Repository advisory
Open repository advisory ↗
Source code
Browse source ↗
Published (advisory)
2025-01-14 21:20:42 UTC
Updated
2025-01-23 18:31:17 UTC
GitHub reviewed
2025-01-14 21:20:42 UTC
NVD published
2025-01-14

EPSS Score

Score Percentile
0.22% 44.68%

CVSS Scores

Base score Version Severity Vector
8.5 4.0
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 Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network.
Attack complexity (AC:L)
Exploitation conditions are straightforward and stable.
Attack requirements (AT:N)
No additional preconditions are required beyond normal reachability.
Privileges required (PR:N)
No privileges are required.
User interaction (UI:A)
User interaction is required in an active way.
Vulnerable system confidentiality impact (VC:H)
High confidentiality impact on the vulnerable system.
Vulnerable system integrity impact (VI:H)
High integrity impact on the vulnerable system.
Vulnerable system availability impact (VA:N)
No availability impact on the vulnerable system.
Subsequent system confidentiality impact (SC:N)
No confidentiality impact on subsequent systems.
Subsequent system integrity impact (SI:N)
No integrity impact on subsequent systems.
Subsequent system availability impact (SA:N)
No availability impact on subsequent systems.

Identifiers

CWEs

CWE id Name
CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
CWE-436 Interpretation Conflict

Credits

  • Ry0taK (reporter)

Affected packages (2)

Vulnerable version ranges and first patched releases as published by GitHub.

Ecosystem Package Vulnerable range First patched Vulnerable functions
go github.com/git-lfs/git-lfs/v3 >= 3.0.0, <= 3.6.0 3.6.1
go github.com/git-lfs/git-lfs >= 0.1.0, <= 3.0.0

References

cvelogic Threat Intelligence