PT-2020-5645
CVE-2020-8165
·
Published
2020-05-26
·
Updated
2025-09-29
Description by
CVSS 3.1
9.8
CriticalMetricsAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions
Ruby on Rails versions prior to 5.2.4.3
Ruby on Rails versions prior to 6.0.3.1
Description
The issue is related to the deserialization of untrusted data in the MemCacheStore and RedisCacheStore components of Ruby on Rails. This can allow an attacker to potentially execute remote code, access confidential data, and disrupt data integrity. The vulnerability occurs when untrusted user input is written to the cache store using the
raw: true parameter, and then re-reading the result from the cache can evaluate the user input as a Marshalled object instead of plain text. The estimated impact of this issue can range from injecting untrusted Ruby objects into a web application to remote code execution.Recommendations
For Ruby on Rails versions prior to 5.2.4.3, update to version 5.2.4.3 or later.
For Ruby on Rails versions prior to 6.0.3.1, update to version 6.0.3.1 or later.
As a temporary workaround, ensure that all user-provided strings cached using the
raw argument are double-checked to ensure they conform to the expected format.
Consider applying the suggested patch as soon as possible if an update is not feasible.Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾