Remote Code Execution (RCE) Affecting git package, versions >=1.2.0, <1.13.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.2% (59th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-RUBY-GIT-3227617
  • published 10 Jan 2023
  • disclosed 9 Jan 2023
  • credit Unknown

How to fix?

Upgrade git to version 1.13.0 or higher.

Overview

git is a Ruby library that can be used to create, read and manipulate Git repositories by wrapping system calls to the git binary.

Affected versions of this package are vulnerable to Remote Code Execution (RCE) due to the usage of the insecure eval() function in the ls_files() method, which results in unescaping of special characters from file paths.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
8 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    Required
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    High
Expand this section

NVD

8 high
Expand this section

Red Hat

8 high