gsd-2021-21237
Vulnerability from gsd
Modified
2023-12-13 01:23
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.
Aliases
Aliases



{
  "GSD": {
    "alias": "CVE-2021-21237",
    "description": "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.",
    "id": "GSD-2021-21237",
    "references": [
      "https://security.archlinux.org/CVE-2021-21237"
    ]
  },
  "gsd": {
    "metadata": {
      "exploitCode": "unknown",
      "remediation": "unknown",
      "reportConfidence": "confirmed",
      "type": "vulnerability"
    },
    "osvSchema": {
      "aliases": [
        "CVE-2021-21237"
      ],
      "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.",
      "id": "GSD-2021-21237",
      "modified": "2023-12-13T01:23:11.194639Z",
      "schema_version": "1.4.0"
    }
  },
  "namespaces": {
    "cve.org": {
      "CVE_data_meta": {
        "ASSIGNER": "security-advisories@github.com",
        "ID": "CVE-2021-21237",
        "STATE": "PUBLIC",
        "TITLE": "Git LFS can execute a Git binary from the current directory on Windows"
      },
      "affects": {
        "vendor": {
          "vendor_data": [
            {
              "product": {
                "product_data": [
                  {
                    "product_name": "git-lfs",
                    "version": {
                      "version_data": [
                        {
                          "version_value": "\u003c 2.13.2"
                        }
                      ]
                    }
                  }
                ]
              },
              "vendor_name": "git-lfs"
            }
          ]
        }
      },
      "data_format": "MITRE",
      "data_type": "CVE",
      "data_version": "4.0",
      "description": {
        "description_data": [
          {
            "lang": "eng",
            "value": "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."
          }
        ]
      },
      "impact": {
        "cvss": {
          "attackComplexity": "HIGH",
          "attackVector": "LOCAL",
          "availabilityImpact": "NONE",
          "baseScore": 7.2,
          "baseSeverity": "HIGH",
          "confidentialityImpact": "HIGH",
          "integrityImpact": "HIGH",
          "privilegesRequired": "LOW",
          "scope": "CHANGED",
          "userInteraction": "REQUIRED",
          "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N",
          "version": "3.1"
        }
      },
      "problemtype": {
        "problemtype_data": [
          {
            "description": [
              {
                "lang": "eng",
                "value": "CWE-426 Untrusted Search Path"
              }
            ]
          }
        ]
      },
      "references": {
        "reference_data": [
          {
            "name": "https://github.com/git-lfs/git-lfs/security/advisories/GHSA-cx3w-xqmc-84g5",
            "refsource": "CONFIRM",
            "url": "https://github.com/git-lfs/git-lfs/security/advisories/GHSA-cx3w-xqmc-84g5"
          },
          {
            "name": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-27955",
            "refsource": "MISC",
            "url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-27955"
          },
          {
            "name": "https://github.com/git-lfs/git-lfs/releases/tag/v2.13.2",
            "refsource": "MISC",
            "url": "https://github.com/git-lfs/git-lfs/releases/tag/v2.13.2"
          },
          {
            "name": "https://github.com/git-lfs/git-lfs/commit/fc664697ed2c2081ee9633010de0a7f9debea72a",
            "refsource": "MISC",
            "url": "https://github.com/git-lfs/git-lfs/commit/fc664697ed2c2081ee9633010de0a7f9debea72a"
          }
        ]
      },
      "source": {
        "advisory": "GHSA-cx3w-xqmc-84g5",
        "discovery": "UNKNOWN"
      }
    },
    "gitlab.com": {
      "advisories": [
        {
          "affected_range": "\u003cv2.13.2",
          "affected_versions": "All versions before 2.13.2",
          "cvss_v2": "AV:L/AC:L/Au:N/C:P/I:P/A:P",
          "cvss_v3": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
          "cwe_ids": [
            "CWE-1035",
            "CWE-426",
            "CWE-78",
            "CWE-937"
          ],
          "date": "2022-02-15",
          "description": "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.",
          "fixed_versions": [
            "v2.13.2"
          ],
          "identifier": "CVE-2021-21237",
          "identifiers": [
            "GHSA-cx3w-xqmc-84g5",
            "CVE-2021-21237"
          ],
          "not_impacted": "All versions starting from 2.13.2",
          "package_slug": "go/github.com/git-lfs/git-lfs",
          "pubdate": "2022-02-15",
          "solution": "Upgrade to version 2.13.2 or above.",
          "title": "Untrusted Search Path",
          "urls": [
            "https://github.com/git-lfs/git-lfs/security/advisories/GHSA-cx3w-xqmc-84g5",
            "https://nvd.nist.gov/vuln/detail/CVE-2021-21237",
            "https://github.com/git-lfs/git-lfs/commit/fc664697ed2c2081ee9633010de0a7f9debea72a",
            "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-27955",
            "https://github.com/git-lfs/git-lfs/releases/tag/v2.13.2",
            "https://github.com/advisories/GHSA-cx3w-xqmc-84g5"
          ],
          "uuid": "923a4c28-c2f6-4409-bd5b-a70aeff0da68",
          "versions": [
            {
              "commit": {
                "sha": "5a8161460b2815efd969253396ff1e756d8f0279",
                "tags": [
                  "v2.13.2"
                ],
                "timestamp": "20210113180018"
              },
              "number": "v2.13.2"
            }
          ]
        },
        {
          "affected_range": "\u003cv2.13.2",
          "affected_versions": "All versions before 2.13.2",
          "cvss_v2": "AV:L/AC:L/Au:N/C:P/I:P/A:P",
          "cvss_v3": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
          "cwe_ids": [
            "CWE-1035",
            "CWE-426",
            "CWE-78",
            "CWE-937"
          ],
          "date": "2023-02-09",
          "description": "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.",
          "fixed_versions": [
            "v2.13.2"
          ],
          "identifier": "CVE-2021-21237",
          "identifiers": [
            "GHSA-cx3w-xqmc-84g5",
            "CVE-2021-21237"
          ],
          "not_impacted": "All versions starting from 2.13.2",
          "package_slug": "go/github.com/git-lfs/git-lfs/commands",
          "pubdate": "2022-02-15",
          "solution": "Upgrade to version 2.13.2 or above.",
          "title": "Untrusted Search Path",
          "urls": [
            "https://github.com/git-lfs/git-lfs/security/advisories/GHSA-cx3w-xqmc-84g5",
            "https://nvd.nist.gov/vuln/detail/CVE-2021-21237",
            "https://github.com/git-lfs/git-lfs/commit/fc664697ed2c2081ee9633010de0a7f9debea72a",
            "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-27955",
            "https://github.com/git-lfs/git-lfs/releases/tag/v2.13.2",
            "https://pkg.go.dev/vuln/GO-2021-0098",
            "https://github.com/advisories/GHSA-cx3w-xqmc-84g5"
          ],
          "uuid": "2b90f624-75f0-4e4d-a4bd-034d888a6932",
          "versions": [
            {
              "commit": {
                "sha": "5a8161460b2815efd969253396ff1e756d8f0279",
                "tags": [
                  "v2.13.2"
                ],
                "timestamp": "20210113180018"
              },
              "number": "v2.13.2"
            }
          ]
        },
        {
          "affected_range": "\u003cv2.13.2",
          "affected_versions": "All versions before 2.13.2",
          "cvss_v2": "AV:L/AC:L/Au:N/C:P/I:P/A:P",
          "cvss_v3": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
          "cwe_ids": [
            "CWE-1035",
            "CWE-426",
            "CWE-78",
            "CWE-937"
          ],
          "date": "2023-02-09",
          "description": "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.",
          "fixed_versions": [
            "v2.13.2"
          ],
          "identifier": "CVE-2021-21237",
          "identifiers": [
            "GHSA-cx3w-xqmc-84g5",
            "CVE-2021-21237"
          ],
          "not_impacted": "All versions starting from 2.13.2",
          "package_slug": "go/github.com/git-lfs/git-lfs/creds",
          "pubdate": "2022-02-15",
          "solution": "Upgrade to version 2.13.2 or above.",
          "title": "Untrusted Search Path",
          "urls": [
            "https://github.com/git-lfs/git-lfs/security/advisories/GHSA-cx3w-xqmc-84g5",
            "https://nvd.nist.gov/vuln/detail/CVE-2021-21237",
            "https://github.com/git-lfs/git-lfs/commit/fc664697ed2c2081ee9633010de0a7f9debea72a",
            "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-27955",
            "https://github.com/git-lfs/git-lfs/releases/tag/v2.13.2",
            "https://pkg.go.dev/vuln/GO-2021-0098",
            "https://github.com/advisories/GHSA-cx3w-xqmc-84g5"
          ],
          "uuid": "92fa02e1-b56d-4244-94f8-3dd109148b70",
          "versions": [
            {
              "commit": {
                "sha": "5a8161460b2815efd969253396ff1e756d8f0279",
                "tags": [
                  "v2.13.2"
                ],
                "timestamp": "20210113180018"
              },
              "number": "v2.13.2"
            }
          ]
        },
        {
          "affected_range": "\u003cv2.13.2",
          "affected_versions": "All versions before 2.13.2",
          "cvss_v2": "AV:L/AC:L/Au:N/C:P/I:P/A:P",
          "cvss_v3": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
          "cwe_ids": [
            "CWE-1035",
            "CWE-426",
            "CWE-78",
            "CWE-937"
          ],
          "date": "2023-02-09",
          "description": "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.",
          "fixed_versions": [
            "v2.13.2"
          ],
          "identifier": "CVE-2021-21237",
          "identifiers": [
            "GHSA-cx3w-xqmc-84g5",
            "CVE-2021-21237"
          ],
          "not_impacted": "All versions starting from 2.13.2",
          "package_slug": "go/github.com/git-lfs/git-lfs/lfs",
          "pubdate": "2022-02-15",
          "solution": "Upgrade to version 2.13.2 or above.",
          "title": "Untrusted Search Path",
          "urls": [
            "https://github.com/git-lfs/git-lfs/security/advisories/GHSA-cx3w-xqmc-84g5",
            "https://nvd.nist.gov/vuln/detail/CVE-2021-21237",
            "https://github.com/git-lfs/git-lfs/commit/fc664697ed2c2081ee9633010de0a7f9debea72a",
            "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-27955",
            "https://github.com/git-lfs/git-lfs/releases/tag/v2.13.2",
            "https://pkg.go.dev/vuln/GO-2021-0098",
            "https://github.com/advisories/GHSA-cx3w-xqmc-84g5"
          ],
          "uuid": "235ae97f-210f-4626-98a2-021eb9a6329e",
          "versions": [
            {
              "commit": {
                "sha": "5a8161460b2815efd969253396ff1e756d8f0279",
                "tags": [
                  "v2.13.2"
                ],
                "timestamp": "20210113180018"
              },
              "number": "v2.13.2"
            }
          ]
        },
        {
          "affected_range": "\u003cv2.13.2",
          "affected_versions": "All versions before 2.13.2",
          "cvss_v2": "AV:L/AC:L/Au:N/C:P/I:P/A:P",
          "cvss_v3": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
          "cwe_ids": [
            "CWE-1035",
            "CWE-426",
            "CWE-78",
            "CWE-937"
          ],
          "date": "2023-02-09",
          "description": "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.",
          "fixed_versions": [
            "v2.13.2"
          ],
          "identifier": "CVE-2021-21237",
          "identifiers": [
            "GHSA-cx3w-xqmc-84g5",
            "CVE-2021-21237"
          ],
          "not_impacted": "All versions starting from 2.13.2",
          "package_slug": "go/github.com/git-lfs/git-lfs/lfshttp",
          "pubdate": "2022-02-15",
          "solution": "Upgrade to version 2.13.2 or above.",
          "title": "Untrusted Search Path",
          "urls": [
            "https://github.com/git-lfs/git-lfs/security/advisories/GHSA-cx3w-xqmc-84g5",
            "https://nvd.nist.gov/vuln/detail/CVE-2021-21237",
            "https://github.com/git-lfs/git-lfs/commit/fc664697ed2c2081ee9633010de0a7f9debea72a",
            "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-27955",
            "https://github.com/git-lfs/git-lfs/releases/tag/v2.13.2",
            "https://pkg.go.dev/vuln/GO-2021-0098",
            "https://github.com/advisories/GHSA-cx3w-xqmc-84g5"
          ],
          "uuid": "949b5813-f2da-4bc5-a63c-4023f0ae8e12",
          "versions": [
            {
              "commit": {
                "sha": "5a8161460b2815efd969253396ff1e756d8f0279",
                "tags": [
                  "v2.13.2"
                ],
                "timestamp": "20210113180018"
              },
              "number": "v2.13.2"
            }
          ]
        }
      ]
    },
    "nvd.nist.gov": {
      "configurations": {
        "CVE_data_version": "4.0",
        "nodes": [
          {
            "children": [],
            "cpe_match": [
              {
                "cpe23Uri": "cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:*:*:*:*:*:*:*:*",
                "cpe_name": [],
                "versionEndExcluding": "2.13.2",
                "vulnerable": true
              }
            ],
            "operator": "OR"
          }
        ]
      },
      "cve": {
        "CVE_data_meta": {
          "ASSIGNER": "security-advisories@github.com",
          "ID": "CVE-2021-21237"
        },
        "data_format": "MITRE",
        "data_type": "CVE",
        "data_version": "4.0",
        "description": {
          "description_data": [
            {
              "lang": "en",
              "value": "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."
            }
          ]
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "en",
                  "value": "CWE-426"
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "https://github.com/git-lfs/git-lfs/security/advisories/GHSA-cx3w-xqmc-84g5",
              "refsource": "CONFIRM",
              "tags": [
                "Third Party Advisory"
              ],
              "url": "https://github.com/git-lfs/git-lfs/security/advisories/GHSA-cx3w-xqmc-84g5"
            },
            {
              "name": "https://github.com/git-lfs/git-lfs/commit/fc664697ed2c2081ee9633010de0a7f9debea72a",
              "refsource": "MISC",
              "tags": [
                "Patch",
                "Third Party Advisory"
              ],
              "url": "https://github.com/git-lfs/git-lfs/commit/fc664697ed2c2081ee9633010de0a7f9debea72a"
            },
            {
              "name": "https://github.com/git-lfs/git-lfs/releases/tag/v2.13.2",
              "refsource": "MISC",
              "tags": [
                "Third Party Advisory"
              ],
              "url": "https://github.com/git-lfs/git-lfs/releases/tag/v2.13.2"
            },
            {
              "name": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-27955",
              "refsource": "MISC",
              "tags": [
                "Third Party Advisory"
              ],
              "url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-27955"
            }
          ]
        }
      },
      "impact": {
        "baseMetricV2": {
          "acInsufInfo": false,
          "cvssV2": {
            "accessComplexity": "LOW",
            "accessVector": "LOCAL",
            "authentication": "NONE",
            "availabilityImpact": "PARTIAL",
            "baseScore": 4.6,
            "confidentialityImpact": "PARTIAL",
            "integrityImpact": "PARTIAL",
            "vectorString": "AV:L/AC:L/Au:N/C:P/I:P/A:P",
            "version": "2.0"
          },
          "exploitabilityScore": 3.9,
          "impactScore": 6.4,
          "obtainAllPrivilege": false,
          "obtainOtherPrivilege": false,
          "obtainUserPrivilege": false,
          "severity": "MEDIUM",
          "userInteractionRequired": false
        },
        "baseMetricV3": {
          "cvssV3": {
            "attackComplexity": "LOW",
            "attackVector": "LOCAL",
            "availabilityImpact": "HIGH",
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "LOW",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "exploitabilityScore": 1.8,
          "impactScore": 5.9
        }
      },
      "lastModifiedDate": "2021-01-29T22:18Z",
      "publishedDate": "2021-01-15T18:15Z"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.