CVE-2021-43809Argument Injection in Bundler

CWE-88Argument Injection7 documents5 sources
Severity
7.3HIGHNVD
EPSS
1.3%
top 20.11%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedDec 8

Description

`Bundler` is a package for managing application dependencies in Ruby. In `bundler` versions before 2.2.33, when working with untrusted and apparently harmless `Gemfile`'s, it is not expected that they lead to execution of external code, unless that's explicit in the ruby code inside the `Gemfile` itself. However, if the `Gemfile` includes `gem` entries that use the `git` option with invalid, but seemingly harmless, values with a leading dash, this can be false. To handle dependencies that come f

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:HExploitability: 1.3 | Impact: 5.9

Affected Packages5 packages

NVDbundler/bundler< 2.2.33
RubyGemsbundler/bundler< 2.2.33
debiandebian/rubygems< rubygems 3.3.5-1 (bookworm)
CVEListV5rubygems/rubygems< 2.2.33
Debianrubygems/rubygems< 3.2.5-2+deb11u1+3

Patches

🔴Vulnerability Details

4
GHSA
Local Code Execution through Argument Injection via dash leading git url parameter in Gemfile.2021-12-08
OSV
CVE-2021-43809: `Bundler` is a package for managing application dependencies in Ruby2021-12-08
OSV
Local Code Execution through Argument Injection via dash leading git url parameter in Gemfile.2021-12-08
OSV
CVE-2021-43809: `Bundler` is a package for managing application dependencies in Ruby2021-12-08

📋Vendor Advisories

2
Red Hat
rubygem-bundler: unexpected code execution in Gemfiles2021-12-08
Debian
CVE-2021-43809: rubygems - `Bundler` is a package for managing application dependencies in Ruby. In `bundle...2021
CVE-2021-43809 — Argument Injection in Bundler | cvebase