Improper Input Validation Affecting ruby-libs package, versions <0:1.8.7.352-3.el6


Severity

Recommended
low

Based on CentOS security rating.

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 Learn

Learn about Improper Input Validation vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CENTOS6-RUBYLIBS-2051331
  • published26 Jul 2021
  • disclosed2 Jul 2011

Introduced: 2 Jul 2011

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

How to fix?

Upgrade Centos:6 ruby-libs to version 0:1.8.7.352-3.el6 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby-libs package and not the ruby-libs package as distributed by Centos. See How to fix? for Centos:6 relevant fixed versions and status.

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