Vulnerabilidad en función SecureRandom.random_bytes de libsecurerandom.rb de Ruby (CVE-2011-2705)
Gravedad CVSS v2.0:
MEDIA
Tipo:
CWE-20
Validación incorrecta de entrada
Fecha de publicación:
05/08/2011
Última modificación:
11/04/2025
Descripción
La función SecureRandom.random_bytes de lib/securerandom.rb de Ruby en versiones anteriores a 1.8.7-p352 y 1.9.x anteriores a 1.9.2-p290 se basa en valores PID para la inicialización, lo que facilita a atacantes dependientes del contexto predecir la cadena resultado utilizando el conocimiento de cadenas aleatorias obtenidas en procesos anteriores con el mismo PID.
Impacto
Puntuación base 2.0
5.00
Gravedad 2.0
MEDIA
Productos y versiones vulnerables
| CPE | Desde | Hasta |
|---|---|---|
| cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* | 1.8.7-334 (incluyendo) | |
| cpe:2.3:a:ruby-lang:ruby:1.8.7:p22:*:*:*:*:*:* | ||
| cpe:2.3:a:ruby-lang:ruby:1.8.7:p71:*:*:*:*:*:* | ||
| cpe:2.3:a:ruby-lang:ruby:1.8.7:p72:*:*:*:*:*:* | ||
| cpe:2.3:a:ruby-lang:ruby:1.8.7-160:*:*:*:*:*:*:* | ||
| cpe:2.3:a:ruby-lang:ruby:1.8.7-173:*:*:*:*:*:*:* | ||
| cpe:2.3:a:ruby-lang:ruby:1.8.7-248:*:*:*:*:*:*:* | ||
| cpe:2.3:a:ruby-lang:ruby:1.8.7-249:*:*:*:*:*:*:* | ||
| cpe:2.3:a:ruby-lang:ruby:1.8.7-299:*:*:*:*:*:*:* | ||
| cpe:2.3:a:ruby-lang:ruby:1.8.7-302:*:*:*:*:*:*:* | ||
| cpe:2.3:a:ruby-lang:ruby:1.8.7-330:*:*:*:*:*:*:* | ||
| cpe:2.3:a:ruby-lang:ruby:1.8.7-p21:*:*:*:*:*:*:* | ||
| cpe:2.3:a:ruby-lang:ruby:1.9:*:*:*:*:*:*:* | ||
| cpe:2.3:a:ruby-lang:ruby:1.9:r18423:*:*:*:*:*:* | ||
| cpe:2.3:a:ruby-lang:ruby:1.9.0:*:*:*:*:*:*:* |
Para consultar la lista completa de nombres de CPE con productos y versiones, ver esta página
Referencias a soluciones, herramientas e información
- http://lists.fedoraproject.org/pipermail/package-announce/2011-July/063062.html
- http://lists.fedoraproject.org/pipermail/package-announce/2011-July/063071.html
- http://redmine.ruby-lang.org/issues/4579
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=32050
- http://svn.ruby-lang.org/repos/ruby/tags/v1_8_7_352/ChangeLog
- http://svn.ruby-lang.org/repos/ruby/tags/v1_9_2_290/ChangeLog
- http://www.openwall.com/lists/oss-security/2011/07/11/1
- http://www.openwall.com/lists/oss-security/2011/07/12/14
- http://www.openwall.com/lists/oss-security/2011/07/20/1
- http://www.openwall.com/lists/oss-security/2011/07/20/16
- http://www.redhat.com/support/errata/RHSA-2011-1581.html
- http://www.ruby-lang.org/en/news/2011/07/02/ruby-1-8-7-p352-released/
- http://www.ruby-lang.org/en/news/2011/07/15/ruby-1-9-2-p290-is-released/
- http://www.securityfocus.com/bid/49015
- https://bugzilla.redhat.com/show_bug.cgi?id=722415
- http://lists.fedoraproject.org/pipermail/package-announce/2011-July/063062.html
- http://lists.fedoraproject.org/pipermail/package-announce/2011-July/063071.html
- http://redmine.ruby-lang.org/issues/4579
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=32050
- http://svn.ruby-lang.org/repos/ruby/tags/v1_8_7_352/ChangeLog
- http://svn.ruby-lang.org/repos/ruby/tags/v1_9_2_290/ChangeLog
- http://www.openwall.com/lists/oss-security/2011/07/11/1
- http://www.openwall.com/lists/oss-security/2011/07/12/14
- http://www.openwall.com/lists/oss-security/2011/07/20/1
- http://www.openwall.com/lists/oss-security/2011/07/20/16
- http://www.redhat.com/support/errata/RHSA-2011-1581.html
- http://www.ruby-lang.org/en/news/2011/07/02/ruby-1-8-7-p352-released/
- http://www.ruby-lang.org/en/news/2011/07/15/ruby-1-9-2-p290-is-released/
- http://www.securityfocus.com/bid/49015
- https://bugzilla.redhat.com/show_bug.cgi?id=722415



