Bug 1185842 - (CVE-2020-36327) VUL-0: CVE-2020-36327: rubygem-bundler: Bundler chooses a dependency source based on the highest gem version number, which means that a rogue gem found at a public source may be chosen
(CVE-2020-36327)
VUL-0: CVE-2020-36327: rubygem-bundler: Bundler chooses a dependency source b...
Status: NEW
Classification: Novell Products
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents
unspecified
Other Other
: P2 - High : Major
: ---
Assigned To: Marcus Rückert
Security Team bot
https://smash.suse.de/issue/283259/
CVSSv3.1:SUSE:CVE-2020-36327:8.8:(AV:...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-05-10 10:50 UTC by Gianluca Gabrielli
Modified: 2022-11-11 09:02 UTC (History)
10 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---
gabriele.sonnu: needinfo? (mrueckert)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gianluca Gabrielli 2021-05-10 10:50:31 UTC
CVE-2020-36327

Bundler 1.16.0 through 2.2.9 and 2.2.11 through 2.2.16 sometimes chooses a
dependency source based on the highest gem version number, which means that a
rogue gem found at a public source may be chosen, even if the intended choice
was a private gem that is a dependency of another private gem that is explicitly
depended on by the application. NOTE: it is not correct to use CVE-2021-24105
for every "Dependency Confusion" issue in every product.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-36327
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-36327
https://github.com/rubygems/rubygems/issues/3982
https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2021-24105
Comment 1 Gianluca Gabrielli 2021-05-10 10:56:13 UTC
This is the PR [0] where this behavior is fixed, via this patch [1]. Anyway, the PR has been successively reverted by the author with this commit [2].

Let's take this ticket open to track the issue, while wait for upstream to release a proper patch.

[0] https://github.com/rubygems/rubygems/pull/3655
[1] https://github.com/rubygems/rubygems/commit/4346a8bb5d58c5026ad48f18e9da3dcee8c7b198.patch
[2] https://github.com/rubygems/rubygems/commit/8284816a94a8cbd7e7b6cf694b924289e040196a.patch
Comment 2 Gianluca Gabrielli 2021-05-10 10:58:25 UTC
Affected packages:

- SUSE:SLE-15:Update/rubygem-bundler 1.16.1
- openSUSE:Factory/rubygem-bundler   2.2.6