Bug 1843072 (CVE-2020-8165) - CVE-2020-8165 rubygem-activesupport: potentially unintended unmarshalling of user-provided objects in MemCacheStore and RedisCacheStore
Summary: CVE-2020-8165 rubygem-activesupport: potentially unintended unmarshalling of ...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2020-8165
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1843074 1842995 1842996 1843073 1843497 1844235 1846377 1972641
Blocks: 1843075 1997390
TreeView+ depends on / blocked
 
Reported: 2020-06-02 17:18 UTC by Guilherme de Almeida Suckevicz
Modified: 2022-02-10 21:53 UTC (History)
47 users (show)

Fixed In Version: rubygem-activesupport 5.2.4.3, rubygem-activesupport 6.0.3.1
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in rubygem-activesupport. An untrusted user input can be written to the cache store using the `raw: true` parameter which can lead to the result being evaluated as a marshaled object instead of plain text. The threat from this vulnerability is to data confidentiality and integrity as well as system availability.
Clone Of:
Environment:
Last Closed: 2021-11-10 12:07:52 UTC
Embargoed:


Attachments (Terms of Use)

Description Guilherme de Almeida Suckevicz 2020-06-02 17:18:22 UTC
There is potentially unexpected behaviour in the MemCacheStore and RedisCacheStore where, when untrusted user input is written to the cache store using the `raw: true` parameter, re-reading the result from the cache can evaluate the user input as a marshalled object instead of plain text.

Reference:
https://groups.google.com/forum/#!msg/rubyonrails-security/bv6fW4S0Y1c/KnkEqM7AAQAJ

Comment 1 Guilherme de Almeida Suckevicz 2020-06-02 17:19:41 UTC
Created rubygem-activesupport tracking bugs for this issue:

Affects: epel-7 [bug 1843074]
Affects: fedora-all [bug 1843073]

Comment 15 Hardik Vyas 2020-06-15 13:15:29 UTC
Mitigation:

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Comment 17 Jason Shepherd 2020-08-04 04:38:23 UTC
Statement:

This issue affects the version of rubygem-activesupport as shipped with Red Hat Gluster Storage 3. However, the 'raw' option is not used by the product when storing untrusted user input and hence this issue has been rated as having a security impact of Low.

Red Hat Satellite ship affected RubyGem ActiveSupport and use RedisCacheStore, however, unmarshalling of user-provided objects is handled well in product code hence it is not vulnerable to the flaw. We may update the Ruby on Rails and rails-core dependency in a future release.

in OpenShift Container Platform 3.11, rubygem-activesupport is shipped, and it's included in the logging-fluentd container for use by rubygem-kubeclient [1]. The kubeclient gem does NOT make use of the vulnerable class, its only included for the inflector part of activesupport.


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