Skip to content

CVE-2022-39260 (High) detected in gitv2.30.2 #31

@mend-bolt-for-github

Description

@mend-bolt-for-github

CVE-2022-39260 - High Severity Vulnerability

Vulnerable Library - gitv2.30.2

The core git plumbing

Library home page: https://git.kernel.org/pub/scm/git/git.git

Found in base branch: master

Vulnerable Source Files (1)

/shell.c

Vulnerability Details

Git is an open source, scalable, distributed revision control system. git shell is a restricted login shell that can be used to implement Git's push/pull functionality via SSH. In versions prior to 2.30.6, 2.31.5, 2.32.4, 2.33.5, 2.34.5, 2.35.5, 2.36.3, and 2.37.4, the function that splits the command arguments into an array improperly uses an int to represent the number of entries in the array, allowing a malicious actor to intentionally overflow the return value, leading to arbitrary heap writes. Because the resulting array is then passed to execv(), it is possible to leverage this attack to gain remote code execution on a victim machine. Note that a victim must first allow access to git shell as a login shell in order to be vulnerable to this attack. This problem is patched in versions 2.30.6, 2.31.5, 2.32.4, 2.33.5, 2.34.5, 2.35.5, 2.36.3, and 2.37.4 and users are advised to upgrade to the latest version. Disabling git shell access via remote logins is a viable short-term workaround.

Publish Date: 2022-10-19

URL: CVE-2022-39260

CVSS 3 Score Details (8.8)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: Required
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: High
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-rjr6-wcq6-83p6

Release Date: 2022-10-19

Fix Resolution: v2.30.6,v2.31.5,v2.32.4,v2.33.5,v2.34.5,v2.35.5,v2.36.3,v2.37.4,v2.38.1


Step up your Open Source Security Game with Mend here

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions