PT-2020-5645 · Ruby+3 · Ruby On Rails+3

Dylan-Ts

·

Published

2020-05-26

·

Updated

2025-09-29

·

CVE-2020-8165

CVSS v3.1

9.8

Critical

VectorAV: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.

Exploit

Fix

RCE

Deserialization of Untrusted Data

Weakness Enumeration

Related Identifiers

ALSA-2025_16880
ALT-PU-2020-2321
BDU:2021-01345
CVE-2020-8165
DLA-2251-1
DLA-2282-1
DSA-4766-1
GHSA-2P68-F74V-9WC6
OESA-2021-1145
OPENSUSE-SU-2020:1677-1
OPENSUSE-SU-2020:1679-1
OPENSUSE-SU-2020:1993-1
OPENSUSE-SU-2020:2000-1
OPENSUSE-SU-2020_1677-1
OPENSUSE-SU-2020_1679-1
OPENSUSE-SU-2020_1993-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:2929-1
SUSE-SU-2020:3036-1
SUSE-SU-2020:3147-1
SUSE-SU-2020:3160-1
SUSE-SU-2020_2899-1

Affected Products

Alt Linux
Red Os
Ruby On Rails
Suse