# CVE-2021-43809: Local Code Execution through Argument Injection via dash leading git url parameter in Gemfile.

Source: https://junglewise.ai/threats/cve-2021-43809-local-code-execution-through-argument-injection-via-dash-leading  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-12-08  
License: CC BY 4.0 with a link back

CVE-2021-43809 · Severity: low · CVSS 3.1 · Published 2021-12-08

Local Code Execution through Argument Injection via dash leading git url parameter in Gemfile.

Technologies: [bundler (RubyGems)](https://junglewise.ai/threats/technologies/bundler). Vendors: [RubyGems](https://junglewise.ai/threats/vendors/rubygems).

## Quick answers

**Is CVE-2021-43809 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-43809 being exploited in the wild.

**How severe is CVE-2021-43809?** Low severity, with a CVSS score of 3.1, published 8 December 2021.

**Which products and versions are affected?** bundler (RubyGems) ECOSYSTEM:introduced=0,fixed=2.2.33.

**Is there a fix for CVE-2021-43809?** Yes. bundler (RubyGems): upgrade to 2.2.33 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-43809?** Check whether you run bundler (RubyGems) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- bundler (RubyGems): upgrade to 2.2.33 or later

  ```sh
  bundle update bundler
  ```


## Affected products

- bundler (RubyGems) ECOSYSTEM:introduced=0,fixed=2.2.33

## Identifiers

- CVE-2021-43809
- GHSA-fj7f-vq84-fh43

## Related threats

- [Bundler allows attacker to inject arbitrary code via secondary Gem source](https://junglewise.ai/threats/cve-2016-7954-bundler-allows-attacker-to-inject-arbitrary-code-via-secondary-gem)
- [Bundler may install gems from a different source than expected](https://junglewise.ai/threats/cve-2013-0334-bundler-may-install-gems-from-a-different-source-than-expected)
- [Dependency Confusion in Bundler](https://junglewise.ai/threats/cve-2020-36327-dependency-confusion-in-bundler)
- [Insecure path handling in Bundler](https://junglewise.ai/threats/cve-2019-3881-insecure-path-handling-in-bundler)
