Advisory

GHSA-q6r2-x2cc-vrp7

Also known as: BIT-git-lfs-2024-53263, CVE-2024-53263, GO-2025-3390

Summary

Git LFS permits exfiltration of credentials via crafted HTTP URLs

Details

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:

Severity

High Basis: The source's own band: HIGH

Dates

Published
2025-01-14 21:20 UTC
Modified
2025-01-23 18:31 UTC

Affected packages and fixes

github.com/git-lfs/git-lfs

Go · All systems

Affected

  • introduced 0.1.0, last affected 3.0.0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

github.com/git-lfs/git-lfs/v3

Go · All systems

Affected

  • introduced 3.0.0, fixed 3.6.1 (semver)

Fixed versions

3.6.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences