CVE-2020-10933

ruby: BasicSocket#read_nonblock method leads to information disclosure

Published May 4, 2020 CVSS 3.1 · 5.3 Medium EPSS 2.5% KEV · Not listed
Description
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.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-4721-1 ruby2.5 security update
EUVD EUVD EUVD-2020-3339 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.
Ubuntu USN Ubuntu USN USN-4882-1 Ruby vulnerabilities
History

No history.

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-805

    Buffer Access with Incorrect Length Value

  • CWE-908

    Use of Uninitialized Resource

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 4, 2024, 11:21 AM
Reserved
Mar 24, 2020, 12:00 AM
Status
Modified
Published
May 4, 2020, 3:15 PM
Modified
Jun 17, 2026, 2:48 AM
Severity
Moderate
Public date
Mar 31, 2020, 12:00 AM