SB2021120831 - Argument injection in bundler
Published: December 8, 2021 Updated: April 23, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 1 vulnerability.
1) Improper Neutralization of Argument Delimiters in a Command (CVE-ID: CVE-2021-43809)
The vulnerability allows a local user to execute arbitrary code on the target system.
The vulnerability occurs when working with untrusted and apparently harmless `Gemfile`'s. A local user can trick the victim into opening a specially crafted directory containing a `Gemfile` file that declares a dependency that is located in a Git repository and execute arbitrary code on the target system.
Remediation
Install update from vendor's website.
References
- https://github.com/rubygems/rubygems/commit/a4f2f8ac17e6ce81c689527a8b6f14381060d95f
- https://github.com/rubygems/rubygems/security/advisories/GHSA-fj7f-vq84-fh43
- https://github.com/rubygems/rubygems/pull/5142
- https://github.com/rubygems/rubygems/commit/0fad1ccfe9dd7a3c5b82c1496df3c2b4842870d3
- https://www.sonarsource.com/blog/securing-developer-tools-package-managers/