UBUNTU-CVE-2021-21237

Source
https://ubuntu.com/security/CVE-2021-21237
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21237.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2021-21237
Related
Published
2021-01-15T18:15:00Z
Modified
2025-01-13T10:22:29Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Ubuntu:Pro:18.04:LTS / git-lfs

Package

Name
git-lfs
Purl
pkg:deb/ubuntu/git-lfs@2.3.4-1?arch=source&distro=esm-apps/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*

2.2.1-1
2.3.3-1
2.3.4-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:20.04:LTS / git-lfs

Package

Name
git-lfs
Purl
pkg:deb/ubuntu/git-lfs@2.9.2-1?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*

2.8.0-4
2.9.0-1
2.9.1-1
2.9.2-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:22.04:LTS / git-lfs

Package

Name
git-lfs
Purl
pkg:deb/ubuntu/git-lfs@2.13.2-1?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.13.2-1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.13.2-1",
            "binary_name": "git-lfs"
        },
        {
            "binary_version": "2.13.2-1",
            "binary_name": "git-lfs-dbgsym"
        },
        {
            "binary_version": "2.13.2-1",
            "binary_name": "golang-github-git-lfs-git-lfs-dev"
        }
    ]
}