CVE catalog

CVE-2021-21237

git-lfs: CVE-2021-21237

[CVE catalog]

Severity
Low
Published
Source
[NVD] · [CVE record]
EPSS
0.45% · Oct 25, 2026

Git LFS is a command line extension for managing large files with Git. On Windows, if Git LFS operates on a malicious repository with a git.bat or git.exe file in the current directory, that program would be executed, permitting the attacker to execute arbitrary code. This does not affect Unix systems. This is the result of an incomplete fix for CVE-2020-27955. This issue occurs because on Windows, Go includes (and prefers) the current directory when the name of a command run does not contain a directory separator. Other than avoiding untrusted repositories or using a different operating system, there is no workaround. This is fixed in v2.13.2.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiangit-lfssid3.8.0-2not affected
Debiangit-lfsforky3.8.0-2not affected
Debiangit-lfstrixie3.6.1-1+deb13u1not affected
Debiangit-lfsbookworm3.3.0-1+deb12u1not affected
Debiangit-lfsbookworm-security3.3.0-1+deb12u2not affected

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiangit-lfssourcesidNot affectedunimportantNot reportedNot reported
Debiangit-lfssourceforkyNot affectedunimportantNot reportedNot reported
Debiangit-lfssourcetrixieNot affectedunimportantNot reportedNot reported
Debiangit-lfssourcebookwormNot affectedunimportantNot reportedNot reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [git-lfs]Not affected
    Details (4)
    • 3.3.0-1+deb12u1 · amd64 · bookworm

      Not affected

      dsa · git-lfs · debian · bookworm

    • 3.3.0-1+deb12u1 · arm64 · bookworm

      Not affected

      dsa · git-lfs · debian · bookworm

    • 3.3.0-1+deb12u1 · amd64 · bookworm-security

      Not affected

      dsa · git-lfs · debian · bookworm

    • 3.3.0-1+deb12u1 · arm64 · bookworm-security

      Not affected

      dsa · git-lfs · debian · bookworm

  • Source package: [git-lfs]

    Details (4)
    • 3.3.0-1+deb12u1 · all · bookworm

      Not affected

      dsa · git-lfs · debian · bookworm

    • 3.3.0-1+deb12u1 · all · bookworm

      Not affected

      dsa · git-lfs · debian · bookworm

    • 3.3.0-1+deb12u1 · all · bookworm-security

      Not affected

      dsa · git-lfs · debian · bookworm

    • 3.3.0-1+deb12u1 · all · bookworm-security

      Not affected

      dsa · git-lfs · debian · bookworm

Observed:

References