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

36 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
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
All of the following
Any of the following
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
alpine/ruby>=2.5.0<2.5.8-r0
2.5.8-r0
alpine/ruby>=2.6.0<2.6.6-r0
2.6.6-r0
alpine/ruby>=2.6.0<2.6.6-r0
2.6.6-r0
alpine/ruby>=2.6.0<2.6.6-r0
2.6.6-r0
alpine/ruby>=2.6.0<2.6.6-r0
2.6.6-r0
alpine/ruby>=2.6.0<2.6.6-r0
2.6.6-r0
alpine/ruby>=2.6.0<2.6.6-r0
2.6.6-r0
alpine/ruby>=2.6.0<2.6.6-r0
2.6.6-r0
alpine/ruby>=2.6.0<2.6.6-r0
2.6.6-r0
alpine/ruby>=2.6.0<2.6.6-r0
2.6.6-r0
alpine/ruby>=2.6.0<2.6.6-r0
2.6.6-r0
alpine/ruby>=2.6.0<2.6.6-r0
2.6.6-r0
alpine/ruby>=2.6.0<2.6.6-r0
2.6.6-r0
alpine/ruby>=2.6.0<2.6.6-r0
2.6.6-r0
alpine/ruby>=2.6.0<2.6.6-r0
2.6.6-r0
alpine/ruby>=2.5.0<2.5.8-r0
2.5.8-r0
alpine/ruby>=2.5.0<2.5.8-r0
2.5.8-r0
debian/ruby2.7<2.7.1-1
2.7.1-1
debian/ruby2.1
debian/ruby2.5
2.5.5-3+deb10u2
debian/ruby2.7
2.7.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/rh-ruby25-ruby to a version that resolves this vulnerability.

    Fixed in 0:2.5.9-9.el7
  2. Upgrade

    Upgrade redhat/rh-ruby26-ruby to a version that resolves this vulnerability.

    Fixed in 0:2.6.7-119.el7
  3. Upgrade

    Upgrade redhat/ruby to a version that resolves this vulnerability.

    Fixed in 2.5.8
  4. Upgrade

    Upgrade redhat/ruby to a version that resolves this vulnerability.

    Fixed in 2.6.6
  5. Upgrade

    Upgrade redhat/ruby to a version that resolves this vulnerability.

    Fixed in 2.7.1
  6. Upgrade

    Upgrade alpine/ruby to a version that resolves this vulnerability.

    Fixed in 2.5.8-r0
  7. Upgrade

    Upgrade alpine/ruby to a version that resolves this vulnerability.

    Fixed in 2.6.6-r0
  8. Upgrade

    Upgrade debian/ruby2.7 to a version that resolves this vulnerability.

    Fixed in 2.7.1-1
  9. Upgrade

    Upgrade debian/ruby2.5 to a version that resolves this vulnerability.

    Fixed in 2.5.5-3+deb10u2

Event History

Mar 31, 2020
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
May 4, 2020
CVE Published
via MITRE·02:54 PM
Data Sourced
via MITRE·02:54 PM
Description
Data Sourced
via NVD·03:15 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·03:15 PM
DescriptionSeverityAffected Software
Feb 21, 2022
Data Sourced
via Red Hat·10:12 AM
DescriptionSeverityAffected Software
Nov 24, 2026
Withdrawn
via OSV·04:28 AM

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