Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2021-43809

published medium CVSS 3.1 · 6.7

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

Published
08 Dec 2021, 18:50:12 UTC
Updated
02 Nov 2026, 18:14:15 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
rubygems — rubygems< 2.2.33 Affected Not stated GitHub_M
AlmaLinux 8 rubygems Advisory build 2.7.6.3-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
Debian bullseye rubygems Advisory build 3.2.5-2+deb11u1 DLA-4163-1
Oracle Linux 8 rubygemsaarch64 · ruby · 2.5b Advisory build 0:2.7.6.3-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Red Hat Enterprise Linux RHEL-8 rubygemsnoarch Advisory build 2.7.6.3-114.module+el8.10.0+23088+750dc6ca RHSA-2025:7539
Alpine Linux v3.15 ruby-bundler Fixed 2.2.33-r0 Package fix record
Oracle Linux 8 rubygemsx86_64 · ruby · 2.5b Advisory build 0:2.7.6.3-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
AlmaLinux 8 ruby Advisory build 2.5.9-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
Show 93 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
AlmaLinux 8 ruby-devel Advisory build 2.5.9-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 ruby-doc Advisory build 2.5.9-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 ruby-irb Advisory build 2.5.9-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 ruby-libs Advisory build 2.5.9-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 rubygem-abrt Advisory build 0.3.0-4.module_el8.5.0+2625+ec418553 ALSA-2025:7539
AlmaLinux 8 rubygem-abrt-doc Advisory build 0.3.0-4.module_el8.10.0+3871+342e2c2f ALSA-2025:7539
AlmaLinux 8 rubygem-bigdecimal Advisory build 1.3.4-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 rubygem-bson Advisory build 4.3.0-2.module_el8.5.0+259+8cec6917 ALSA-2025:7539
AlmaLinux 8 rubygem-bson Advisory build 4.3.0-2.module_el8.5.0+2625+ec418553 ALSA-2025:7539
AlmaLinux 8 rubygem-bson Advisory build 4.3.0-2.module_el8.6.0+3170+4b08f9d4 ALSA-2025:7539
AlmaLinux 8 rubygem-bson-doc Advisory build 4.3.0-2.module_el8.5.0+2625+ec418553 ALSA-2025:7539
AlmaLinux 8 rubygem-bundler Advisory build 1.16.1-5.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 rubygem-bundler-doc Advisory build 1.16.1-5.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 rubygem-did_you_mean Advisory build 1.2.0-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 rubygem-io-console Advisory build 0.4.6-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 rubygem-json Advisory build 2.1.0-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 rubygem-minitest Advisory build 5.10.3-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 rubygem-mongo Advisory build 2.5.1-2.module_el8.5.0+2625+ec418553 ALSA-2025:7539
AlmaLinux 8 rubygem-mongo-doc Advisory build 2.5.1-2.module_el8.5.0+2625+ec418553 ALSA-2025:7539
AlmaLinux 8 rubygem-mysql2 Advisory build 0.4.10-4.module_el8.5.0+259+8cec6917 ALSA-2025:7539
AlmaLinux 8 rubygem-mysql2 Advisory build 0.4.10-4.module_el8.5.0+2625+ec418553 ALSA-2025:7539
AlmaLinux 8 rubygem-mysql2 Advisory build 0.4.10-4.module_el8.6.0+3170+4b08f9d4 ALSA-2025:7539
AlmaLinux 8 rubygem-mysql2-doc Advisory build 0.4.10-4.module_el8.5.0+2625+ec418553 ALSA-2025:7539
AlmaLinux 8 rubygem-net-telnet Advisory build 0.1.1-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 rubygem-openssl Advisory build 2.1.2-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 rubygem-pg Advisory build 1.0.0-3.module_el8.9.0+3635+c6f99506 ALSA-2025:7539
AlmaLinux 8 rubygem-pg-doc Advisory build 1.0.0-3.module_el8.9.0+3635+c6f99506 ALSA-2025:7539
AlmaLinux 8 rubygem-power_assert Advisory build 1.1.1-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 rubygem-psych Advisory build 3.0.2-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 rubygem-rake Advisory build 12.3.3-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 rubygem-rdoc Advisory build 6.0.1.1-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 rubygem-test-unit Advisory build 3.2.7-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 rubygem-xmlrpc Advisory build 0.3.0-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 rubygems-devel Advisory build 2.7.6.3-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
Oracle Linux 8 rubyaarch64 · ruby · 2.5b Advisory build 0:2.5.9-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubyx86_64 · ruby · 2.5b Advisory build 0:2.5.9-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 ruby-develaarch64 · ruby · 2.5b Advisory build 0:2.5.9-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 ruby-develx86_64 · ruby · 2.5b Advisory build 0:2.5.9-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 ruby-docaarch64 · ruby · 2.5b Advisory build 0:2.5.9-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 ruby-docx86_64 · ruby · 2.5b Advisory build 0:2.5.9-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 ruby-irbaarch64 · ruby · 2.5b Advisory build 0:2.5.9-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 ruby-irbx86_64 · ruby · 2.5b Advisory build 0:2.5.9-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 ruby-libsaarch64 · ruby · 2.5b Advisory build 0:2.5.9-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 ruby-libsx86_64 · ruby · 2.5b Advisory build 0:2.5.9-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-abrtaarch64 · ruby · 2.5b Advisory build 0:0.3.0-4.module+el8.10.0+90367+ae9e8511 ELSA-2025-7539
Oracle Linux 8 rubygem-abrtx86_64 · ruby · 2.5b Advisory build 0:0.3.0-4.module+el8.10.0+90367+ae9e8511 ELSA-2025-7539
Oracle Linux 8 rubygem-abrt-docaarch64 · ruby · 2.5b Advisory build 0:0.3.0-4.module+el8.10.0+90367+ae9e8511 ELSA-2025-7539
Oracle Linux 8 rubygem-abrt-docx86_64 · ruby · 2.5b Advisory build 0:0.3.0-4.module+el8.10.0+90367+ae9e8511 ELSA-2025-7539
Oracle Linux 8 rubygem-bigdecimalaarch64 · ruby · 2.5b Advisory build 0:1.3.4-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-bigdecimalx86_64 · ruby · 2.5b Advisory build 0:1.3.4-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-bsonaarch64 · ruby · 2.5b Advisory build 0:4.3.0-2.module+el8.9.0+90042+a65659a6 ELSA-2025-7539
Oracle Linux 8 rubygem-bsonx86_64 · ruby · 2.5b Advisory build 0:4.3.0-2.module+el8.9.0+90042+a65659a6 ELSA-2025-7539
Oracle Linux 8 rubygem-bson-docaarch64 · ruby · 2.5b Advisory build 0:4.3.0-2.module+el8.9.0+90042+a65659a6 ELSA-2025-7539
Oracle Linux 8 rubygem-bson-docx86_64 · ruby · 2.5b Advisory build 0:4.3.0-2.module+el8.9.0+90042+a65659a6 ELSA-2025-7539
Oracle Linux 8 rubygem-bundleraarch64 · ruby · 2.5b Advisory build 0:1.16.1-5.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-bundlerx86_64 · ruby · 2.5b Advisory build 0:1.16.1-5.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-bundler-docaarch64 · ruby · 2.5b Advisory build 0:1.16.1-5.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-bundler-docx86_64 · ruby · 2.5b Advisory build 0:1.16.1-5.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-did_you_meanaarch64 · ruby · 2.5b Advisory build 0:1.2.0-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-did_you_meanx86_64 · ruby · 2.5b Advisory build 0:1.2.0-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-io-consoleaarch64 · ruby · 2.5b Advisory build 0:0.4.6-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-io-consolex86_64 · ruby · 2.5b Advisory build 0:0.4.6-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-jsonaarch64 · ruby · 2.5b Advisory build 0:2.1.0-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-jsonx86_64 · ruby · 2.5b Advisory build 0:2.1.0-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-minitestaarch64 · ruby · 2.5b Advisory build 0:5.10.3-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-minitestx86_64 · ruby · 2.5b Advisory build 0:5.10.3-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-mongoaarch64 · ruby · 2.5b Advisory build 0:2.5.1-2.module+el8.9.0+90042+a65659a6 ELSA-2025-7539
Oracle Linux 8 rubygem-mongox86_64 · ruby · 2.5b Advisory build 0:2.5.1-2.module+el8.9.0+90042+a65659a6 ELSA-2025-7539
Oracle Linux 8 rubygem-mongo-docaarch64 · ruby · 2.5b Advisory build 0:2.5.1-2.module+el8.9.0+90042+a65659a6 ELSA-2025-7539
Oracle Linux 8 rubygem-mongo-docx86_64 · ruby · 2.5b Advisory build 0:2.5.1-2.module+el8.9.0+90042+a65659a6 ELSA-2025-7539
Oracle Linux 8 rubygem-mysql2aarch64 · ruby · 2.5b Advisory build 0:0.4.10-4.module+el8.9.0+90042+a65659a6 ELSA-2025-7539
Oracle Linux 8 rubygem-mysql2x86_64 · ruby · 2.5b Advisory build 0:0.4.10-4.module+el8.9.0+90042+a65659a6 ELSA-2025-7539
Oracle Linux 8 rubygem-mysql2-docaarch64 · ruby · 2.5b Advisory build 0:0.4.10-4.module+el8.9.0+90042+a65659a6 ELSA-2025-7539
Oracle Linux 8 rubygem-mysql2-docx86_64 · ruby · 2.5b Advisory build 0:0.4.10-4.module+el8.9.0+90042+a65659a6 ELSA-2025-7539
Oracle Linux 8 rubygem-net-telnetaarch64 · ruby · 2.5b Advisory build 0:0.1.1-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-net-telnetx86_64 · ruby · 2.5b Advisory build 0:0.1.1-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-opensslaarch64 · ruby · 2.5b Advisory build 0:2.1.2-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-opensslx86_64 · ruby · 2.5b Advisory build 0:2.1.2-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-pgaarch64 · ruby · 2.5b Advisory build 0:1.0.0-3.module+el8.9.0+90042+a65659a6 ELSA-2025-7539
Oracle Linux 8 rubygem-pgx86_64 · ruby · 2.5b Advisory build 0:1.0.0-3.module+el8.9.0+90042+a65659a6 ELSA-2025-7539
Oracle Linux 8 rubygem-pg-docaarch64 · ruby · 2.5b Advisory build 0:1.0.0-3.module+el8.9.0+90042+a65659a6 ELSA-2025-7539
Oracle Linux 8 rubygem-pg-docx86_64 · ruby · 2.5b Advisory build 0:1.0.0-3.module+el8.9.0+90042+a65659a6 ELSA-2025-7539
Oracle Linux 8 rubygem-power_assertaarch64 · ruby · 2.5b Advisory build 0:1.1.1-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-power_assertx86_64 · ruby · 2.5b Advisory build 0:1.1.1-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-psychaarch64 · ruby · 2.5b Advisory build 0:3.0.2-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-psychx86_64 · ruby · 2.5b Advisory build 0:3.0.2-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-rakeaarch64 · ruby · 2.5b Advisory build 0:12.3.3-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-rakex86_64 · ruby · 2.5b Advisory build 0:12.3.3-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-rdocaarch64 · ruby · 2.5b Advisory build 0:6.0.1.1-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-rdocx86_64 · ruby · 2.5b Advisory build 0:6.0.1.1-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-test-unitaarch64 · ruby · 2.5b Advisory build 0:3.2.7-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-test-unitx86_64 · ruby · 2.5b Advisory build 0:3.2.7-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-xmlrpcaarch64 · ruby · 2.5b Advisory build 0:0.3.0-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539

Package entries are limited to the first 100 builds and 100 linked advisories.

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 from a Git repository instead of a registry, Bundler uses various commands, such as `git clone`. These commands are being constructed using user input (e.g. the repository URL). When building the commands, Bundler versions before 2.2.33 correctly avoid Command Injection vulnerabilities by passing an array of arguments instead of a command string. However, there is the possibility that a user input starts with a dash (`-`) and is therefore treated as an optional argument instead of a positional one. This can lead to Code Execution because some of the commands have options that can be leveraged to run arbitrary executables. Since this value comes from the `Gemfile` file, it can contain any character, including a leading dash. To exploit this vulnerability, an 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`, inside. This vulnerability can lead to Arbitrary Code Execution, which could potentially lead to the takeover of the system. However, the exploitability is very low, because it requires a lot of user interaction. Bundler 2.2.33 has patched this problem by inserting `--` as an argument before any positional arguments to those Git commands that were affected by this issue. Regardless of whether users can upgrade or not, they should review any untrustred `Gemfile`'s before running any `bundler` commands that may read them, since they can contain arbitrary ruby code.

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

13

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
6.7 / 10
Severity
medium
Provider
GitHub_M · cna
Vector string
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
rubygems rubygems < 2.2.33 (affected) GitHub_M · cna

Weaknesses

1
  • CWE-88 CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') (GitHub_M · cna)

References

6

Provider assertions

3

GitHub_M · cna

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

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
16e952447d203d5a6ad3cf86fb407cc9938b0d923c38ba0a686ea28883c03de3
Ingested
02 Nov 2026, 18:20:46 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected