Improper Input Validation Affecting ruby package, versions [,1.8.7.52)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.52% (77th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-RUBY-2370212
  • published26 Jan 2022
  • disclosed5 Aug 2011
  • creditUnknown

Introduced: 5 Aug 2011

CVE-2011-2705  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade ruby to version 1.8.7.52 or higher.

Overview

Affected versions of this package are vulnerable to Improper Input Validation. The SecureRandom.random_bytes function in lib/securerandom.rb in Ruby before 1.8.7-p352 and 1.9.x before 1.9.2-p290 relies on PID values for initialization, which makes it easier for context-dependent attackers to predict the result string by leveraging knowledge of random strings obtained in an earlier process with the same PID.

CVSS Scores

version 3.1