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. Learn more

Threat Intelligence

EPSS
0.23% (61st 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 Learn

Learn about Remote Code Execution (RCE) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-GIT-3227617
  • published10 Jan 2023
  • disclosed9 Jan 2023
  • creditUnknown

Introduced: 9 Jan 2023

CVE-2022-46648  (opens in a new tab)
CVE-2022-47318  (opens in a new tab)
CWE-94  (opens in a new tab)

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