CVE-2021-43809 — Vulnerability in bundler — CVE Details
Local Code Execution through Argument Injection via dash leading git url parameter in Gemfile.
Summary
Advisory Timeline
- First published December 8, 2021 (1769 days ago).
- Last revised July 8, 2026 — 1672 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install bundler -v 2.2.33
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: rubygems (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| bundler | rubygems | 0.3.0, 0.3.1, 0.4.0, 0.4.1 (+313 more) | 2.2.33 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-88
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 6.7 score means for each attack dimension.
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
References
- https://github.com/rubygems/rubygems/security/advisories/GHSA-fj7f-vq84-fh43WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-43809ADVISORY
- https://github.com/rubygems/rubygems/pull/5142WEB
- https://github.com/rubygems/rubygems/commit/0fad1ccfe9dd7a3c5b82c1496df3c2b4842870d3WEB
- https://github.com/rubygems/rubygems/commit/a4f2f8ac17e6ce81c689527a8b6f14381060d95fWEB
- https://github.com/rubygems/rubygemsPACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/bundler/CVE-2021-43809.ymlWEB
- https://lists.debian.org/debian-lts-announce/2025/05/msg00015.htmlWEB
- https://www.sonarsource.com/blog/securing-developer-tools-package-managersWEB
Frequently Asked Questions
- What is CVE-2021-43809?
- Local Code Execution through Argument Injection via dash leading git url parameter in Gemfile. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.7/10).
- How do I check if my project is affected by CVE-2021-43809?
- CVE-2021-43809 affects bundler. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2021-43809 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions or has limited impact. Remediate within weeks.
Also Known As
Related CVEs
- CVE-2016-7954CRITICAL
Bundler allows attacker to inject arbitrary code via secondary Gem source
- CVE-2020-36327HIGH
Dependency Confusion in Bundler
- CVE-2019-3881HIGH
Insecure path handling in Bundler
- CVE-2026-107715MEDIUM
Mechanize sends credential headers to another host after an HTTP redirect
- CVE-2026-107399MEDIUM
Mechanize sends credential headers to another origin after a meta refresh
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies