Live threats

All CVEs / Ruby-lang

CVE-2020-10933Ruby-lang Ruby

Medium 5.3 No auth needed

Priority
47
CVSS 3.1
5.3
EPSS
2.5%
probability of exploitation in 30 days · percentile 86
Auth required
No
Published
May 4, 2020
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-908
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

What happens

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#read_nonblock(requested_size, 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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Ruby.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
ruby-langruby≥ 2.5.0 ≤ 2.5.7
ruby-langruby≥ 2.6.0 ≤ 2.6.5
ruby-langruby2.7.0
fedoraprojectfedora31
debiandebian_linux10.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.