PT-2020-5645

CVE-2020-8165

·

Published

2020-05-26

·

Updated

2025-09-29

Description by

CVSS 3.1
9.8
Critical
MetricsAV: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
Related identifiers
GHSA-2P68-F74V-9WC6
ALSA-2025_16880
ALT-PU-2020-2321
DLA-2251-1
DLA-2282-1
DSA-4766-1
OESA-2021-1145
OPENSUSE-SU-2020:1677-1
OPENSUSE-SU-2020_1677-1
OPENSUSE-SU-2020:1679-1
OPENSUSE-SU-2020_1679-1
OPENSUSE-SU-2020:1993-1
OPENSUSE-SU-2020_1993-1
OPENSUSE-SU-2020:2000-1
OPENSUSE-SU-2020_2000-1
OPENSUSE-SU-2024:10589-1
OPENSUSE-SU-2024:11330-1
OPENSUSE-SU-2024:11331-1
OPENSUSE-SU-2024:11828-1
RHSA-2021:1313
SUSE-SU-2020:2899-1
SUSE-SU-2020_2899-1
SUSE-SU-2020:2929-1
SUSE-SU-2020:3036-1
SUSE-SU-2020:3147-1
SUSE-SU-2020:3160-1
Found an issue in the description? Have something to add? Feel free to write us 👾