CVE-2020-10933: Infoleak

Published Mar 31, 2020
·
Updated

An issue was discovered in Ruby 2.5.x through 2.5.7, 2.6.x through 2.6.5, and 2.7.0. If a victim calls BasicSocket#readnonblock(requestedsize, buffer, exception: false), the method resizes the buffer to fit the requested size, but no data is copied. Thus, the buffer string provides the previous value of the heap. This may expose possibly sensitive data from the interpreter.

Affected Software

13 affected componentsFixes available
redhat/rh-ruby25-ruby<0:2.5.9-9.el7
0:2.5.9-9.el7
redhat/rh-ruby26-ruby<0:2.6.7-119.el7
0:2.6.7-119.el7
debian/ruby2.5
2.5.5-3+deb10u42.5.5-3+deb10u6
debian/ruby2.7
2.7.4-1+deb11u1
redhat/ruby<2.5.8
2.5.8
redhat/ruby<2.6.6
2.6.6
redhat/ruby<2.7.1
2.7.1
ruby-lang Ruby>=2.5.0<=2.5.7
ruby-lang Ruby>=2.6.0<=2.6.5
ruby-lang Ruby=2.7.0
Linux Linux kernel
Fedoraproject Fedora=31
Debian Debian Linux=10.0

Event History

Mar 31, 2020
CVE Published
12:00 AM
May 4, 2020
CVE Published
via MITRE·02:54 PM
Data Sourced
via MITRE·02:54 PM
Description

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2020-10933?

CVE-2020-10933 is a vulnerability in Ruby that allows an attacker to read arbitrary memory in the socket library.

2

Which versions of Ruby are affected by CVE-2020-10933?

Ruby 2.5.x through 2.5.7, 2.6.x through 2.6.5, and 2.7.0 are affected by CVE-2020-10933.

3

How does CVE-2020-10933 work?

If a victim calls BasicSocket#read_nonblock(requested_size, buffer, exception: false), the method resizes the buffer to fit the requested size but no data is copied, allowing an attacker to access uninitialized memory.

4

What is the severity of CVE-2020-10933?

CVE-2020-10933 has a severity rating of 5.3, which is considered medium.

5

How can I mitigate CVE-2020-10933 in Ruby?

Update to Ruby version 2.5.9, 2.6.6, or 2.7.1 to mitigate CVE-2020-10933.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203