Arbitrary Code Execution Affecting bundler package, versions <2.2.33


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.24% (64th 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 IDSNYK-RUBY-BUNDLER-2313646
  • published9 Dec 2021
  • disclosed9 Dec 2021
  • creditUnknown

Introduced: 9 Dec 2021

CVE-2021-43809  (opens in a new tab)
CWE-88  (opens in a new tab)

How to fix?

Upgrade bundler to version 2.2.33 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Execution via a Gemfile that includes gem entries that use the git option with invalid values with a leading dash.

The attacker has to craft a directory containing a Gemfile file that declares a dependency that is located in a Git repository. This dependency has to have a Git URL in the form of -u./payload. This URL will be used to construct a git clone command but will be interpreted as the upload-pack argument. Then this directory needs to be shared with the victim, who then needs to run a command that evaluates the Gemfile, such as bundle lock.

CVSS Scores

version 3.1