Bug 2035260 (CVE-2021-43809) - CVE-2021-43809 rubygem-bundler: unexpected code execution in Gemfiles [NEEDINFO]
Summary: CVE-2021-43809 rubygem-bundler: unexpected code execution in Gemfiles
Keywords:
Status: NEW
Alias: CVE-2021-43809
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2035261 2035355
Blocks: 2035262
TreeView+ depends on / blocked
 
Reported: 2021-12-23 12:27 UTC by Marian Rehak
Modified: 2022-03-03 16:22 UTC (History)
15 users (show)

Fixed In Version: rubygem-bundler 2.2.33
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
vondruch: needinfo? (gtucker)


Attachments (Terms of Use)

Description Marian Rehak 2021-12-23 12:27:27 UTC
Crafted directory containing a `Gemfile` file that declares a dependency that is located in a Git repository 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.

Upstream Advisory:

https://github.com/rubygems/rubygems/commit/a4f2f8ac17e6ce81c689527a8b6f14381060d95f
https://github.com/rubygems/rubygems/security/advisories/GHSA-fj7f-vq84-fh43

Comment 1 Marian Rehak 2021-12-23 12:27:42 UTC
Created rubygem-bundler tracking bugs for this issue:

Affects: fedora-all [bug 2035261]

Comment 5 Jun Aruga 2022-01-03 12:08:53 UTC
Just for your information. Here is a upstream ticket about this CVE.

Ruby 2.6.9, bundler 1.17.2 and CVE-2021-43809
https://bugs.ruby-lang.org/issues/18431

Comment 6 Vít Ondruch 2022-02-21 11:03:42 UTC
@Marian it seems you have linked wrong commit. The correct reference (also referenced in Bundler changelog [2]) should be [1].



[1]: https://github.com/rubygems/rubygems/pull/5142
[2]: https://github.com/rubygems/rubygems/commit/0fad1ccfe9dd7a3c5b82c1496df3c2b4842870d3


Note You need to log in before you can comment on or make changes to this bug.