Vulnerability in Ruby-Lang Ruby
CVE-2020-10933
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
EPSS exploit prediction
EPSS 0.025, 85.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Ruby-Lang Ruby — versions 2.7.0
- Debian Linux — versions 10.0
- Fedoraproject Fedora — versions 31
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (ARPSyndicate/cvemon, CoolerVoid/master_librarian). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- www.ruby-lang.org/en/news/2020/03/31/heap-exposure-in-socket-cve-2020-10933/ (Exploit, Vendor Advisory)
- FEDORA-2020-a95706b117 (vendor-advisory)
- security.netapp.com/advisory/ntap-20200625-0001/ (Third Party Advisory)
- DSA-4721 (vendor-advisory, Third Party Advisory)