PT-2020-2439 · Ruby+7 · Ruby+7

Samuel Williams

·

Published

2020-03-31

·

Updated

2025-12-12

·

CVE-2020-10933

CVSS v3.1

5.3

Medium

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Name of the Vulnerable Software and Affected Versions Ruby versions 2.5.x through 2.5.7 Ruby versions 2.6.x through 2.6.5 Ruby version 2.7.0
Description An issue in Ruby may expose possibly sensitive data from the interpreter. This occurs when the BasicSocket#read nonblock method is called with the exception: false parameter, causing the buffer to be resized without copying data, thus providing the previous value of the heap. The vulnerability is related to the lack of protection of internal data and may allow a remote attacker to gain unauthorized access to protected information.
Recommendations For Ruby versions 2.5.x through 2.5.7, consider disabling the BasicSocket#read nonblock function until a patch is available. For Ruby versions 2.6.x through 2.6.5, consider disabling the BasicSocket#read nonblock function until a patch is available. For Ruby version 2.7.0, consider disabling the BasicSocket#read nonblock function until a patch is available. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Information Disclosure

Use of Uninitialized Resource

Weakness Enumeration

Related Identifiers

ALSA-2021:2587
ALSA-2021:2588
ALSA-2021_2587
ALSA-2021_2588
BDU:2020-02445
BIT-RUBY-2020-10933
BIT-RUBY-MIN-2020-10933
CESA-2021_2587
CESA-2021_2588
CVE-2020-10933
DSA-4721-1
ELSA-2021-2587
ELSA-2021-2588
MGASA-2020-0285
OPENSUSE-SU-2020:0586-1
OPENSUSE-SU-2020_0586-1
OPENSUSE-SU-2024:11310-1
OPENSUSE-SU-2024:11311-1
OPENSUSE-SU-2024:11786-1
OPENSUSE-SU-2024:12712-1
OPENSUSE-SU-2024:13623-1
OPENSUSE-SU-2025:14621-1
OPENSUSE-SU-2025:15819-1
RHSA-2021:2104
RHSA-2021:2230
RHSA-2021:2587
RHSA-2021:2588
RHSA-2021_2587
RHSA-2021_2588
RHSA-2022:0581
RHSA-2022:0582
RLSA-2021:2587
RLSA-2021:2588
RLSA-2021_2587
RLSA-2021_2588
SUSE-SU-2020:0995-1
SUSE-SU-2020_0995-1
USN-4882-1

Affected Products

Almalinux
Centos
Linuxmint
Red Hat
Rocky Linux
Ruby
Suse
Ubuntu