FKIE_CVE-2011-2705

Vulnerability from fkie_nvd - Published: 2011-08-05 21:55 - Updated: 2026-06-16 23:31
Severity
Summary
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.
References
secalert@redhat.comhttp://lists.fedoraproject.org/pipermail/package-announce/2011-July/063062.htmlPatch
secalert@redhat.comhttp://lists.fedoraproject.org/pipermail/package-announce/2011-July/063071.html
secalert@redhat.comhttp://redmine.ruby-lang.org/issues/4579
secalert@redhat.comhttp://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=32050Patch
secalert@redhat.comhttp://svn.ruby-lang.org/repos/ruby/tags/v1_8_7_352/ChangeLog
secalert@redhat.comhttp://svn.ruby-lang.org/repos/ruby/tags/v1_9_2_290/ChangeLog
secalert@redhat.comhttp://www.openwall.com/lists/oss-security/2011/07/11/1Patch
secalert@redhat.comhttp://www.openwall.com/lists/oss-security/2011/07/12/14Patch
secalert@redhat.comhttp://www.openwall.com/lists/oss-security/2011/07/20/1Patch
secalert@redhat.comhttp://www.openwall.com/lists/oss-security/2011/07/20/16Patch
secalert@redhat.comhttp://www.redhat.com/support/errata/RHSA-2011-1581.html
secalert@redhat.comhttp://www.ruby-lang.org/en/news/2011/07/02/ruby-1-8-7-p352-released/Patch
secalert@redhat.comhttp://www.ruby-lang.org/en/news/2011/07/15/ruby-1-9-2-p290-is-released/Patch
secalert@redhat.comhttp://www.securityfocus.com/bid/49015
secalert@redhat.comhttps://bugzilla.redhat.com/show_bug.cgi?id=722415Patch
af854a3a-2127-422b-91ae-364da2661108http://lists.fedoraproject.org/pipermail/package-announce/2011-July/063062.htmlPatch
af854a3a-2127-422b-91ae-364da2661108http://lists.fedoraproject.org/pipermail/package-announce/2011-July/063071.html
af854a3a-2127-422b-91ae-364da2661108http://redmine.ruby-lang.org/issues/4579
af854a3a-2127-422b-91ae-364da2661108http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=32050Patch
af854a3a-2127-422b-91ae-364da2661108http://svn.ruby-lang.org/repos/ruby/tags/v1_8_7_352/ChangeLog
af854a3a-2127-422b-91ae-364da2661108http://svn.ruby-lang.org/repos/ruby/tags/v1_9_2_290/ChangeLog
af854a3a-2127-422b-91ae-364da2661108http://www.openwall.com/lists/oss-security/2011/07/11/1Patch
af854a3a-2127-422b-91ae-364da2661108http://www.openwall.com/lists/oss-security/2011/07/12/14Patch
af854a3a-2127-422b-91ae-364da2661108http://www.openwall.com/lists/oss-security/2011/07/20/1Patch
af854a3a-2127-422b-91ae-364da2661108http://www.openwall.com/lists/oss-security/2011/07/20/16Patch
af854a3a-2127-422b-91ae-364da2661108http://www.redhat.com/support/errata/RHSA-2011-1581.html
af854a3a-2127-422b-91ae-364da2661108http://www.ruby-lang.org/en/news/2011/07/02/ruby-1-8-7-p352-released/Patch
af854a3a-2127-422b-91ae-364da2661108http://www.ruby-lang.org/en/news/2011/07/15/ruby-1-9-2-p290-is-released/Patch
af854a3a-2127-422b-91ae-364da2661108http://www.securityfocus.com/bid/49015
af854a3a-2127-422b-91ae-364da2661108https://bugzilla.redhat.com/show_bug.cgi?id=722415Patch
Impacted products
Vendor Product Version
ruby-lang ruby *
ruby-lang ruby 1.8.7
ruby-lang ruby 1.8.7
ruby-lang ruby 1.8.7
ruby-lang ruby 1.8.7-160
ruby-lang ruby 1.8.7-173
ruby-lang ruby 1.8.7-248
ruby-lang ruby 1.8.7-249
ruby-lang ruby 1.8.7-299
ruby-lang ruby 1.8.7-302
ruby-lang ruby 1.8.7-330
ruby-lang ruby 1.8.7-p21
ruby-lang ruby 1.9
ruby-lang ruby 1.9
ruby-lang ruby 1.9.0
ruby-lang ruby 1.9.0
ruby-lang ruby 1.9.0-0
ruby-lang ruby 1.9.0-1
ruby-lang ruby 1.9.0-2
ruby-lang ruby 1.9.0-20060415
ruby-lang ruby 1.9.0-20070709
ruby-lang ruby 1.9.1
ruby-lang ruby 1.9.1
ruby-lang ruby 1.9.1
ruby-lang ruby 1.9.1
ruby-lang ruby 1.9.1
ruby-lang ruby 1.9.1
ruby-lang ruby 1.9.1
ruby-lang ruby 1.9.1
ruby-lang ruby 1.9.1
ruby-lang ruby 1.9.1
ruby-lang ruby 1.9.2
ruby-lang ruby 1.9.2
ruby-lang ruby 1.9.2-p136
ruby-lang ruby 1.9.2-p180

{
  "affected": [
    {
      "affectedData": [
        {
          "product": "n/a",
          "vendor": "n/a",
          "versions": [
            {
              "status": "affected",
              "version": "n/a"
            }
          ]
        }
      ],
      "source": "secalert@redhat.com"
    }
  ],
  "configurations": [
    {
      "nodes": [
        {
          "cpeMatch": [
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:*",
              "matchCriteriaId": "2C145137-6CD4-4E6D-B17E-F21F88E272BF",
              "versionEndIncluding": "1.8.7-334",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.8.7:p22:*:*:*:*:*:*",
              "matchCriteriaId": "1FE05F3A-A8B5-45EE-BF52-D55E2768F890",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.8.7:p71:*:*:*:*:*:*",
              "matchCriteriaId": "0C6D66E2-3E10-4DEA-9E6B-53A5DE78AFCF",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.8.7:p72:*:*:*:*:*:*",
              "matchCriteriaId": "17AA24B4-30C7-4D46-A55C-A5CC7C446436",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.8.7-160:*:*:*:*:*:*:*",
              "matchCriteriaId": "DD10E326-6907-47DB-B2F1-D09EF2E7EBD8",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.8.7-173:*:*:*:*:*:*:*",
              "matchCriteriaId": "55A7F5F2-3F5D-441B-9756-8540BDCB3356",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.8.7-248:*:*:*:*:*:*:*",
              "matchCriteriaId": "4FE44E5F-8ECA-4325-9454-12682D84F430",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.8.7-249:*:*:*:*:*:*:*",
              "matchCriteriaId": "81D68A0E-2809-4A02-BEEA-B37719AC23DC",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.8.7-299:*:*:*:*:*:*:*",
              "matchCriteriaId": "324BD6C5-27BE-4678-846D-90433FD6AD0A",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.8.7-302:*:*:*:*:*:*:*",
              "matchCriteriaId": "6AA691FE-2BBF-4407-A52B-8CCAA07E0BC1",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.8.7-330:*:*:*:*:*:*:*",
              "matchCriteriaId": "3684A343-ABD7-4B80-993C-1F3CC0F983DF",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.8.7-p21:*:*:*:*:*:*:*",
              "matchCriteriaId": "D1797BB1-935E-45F0-A803-A985E5659236",
              "vulnerable": true
            }
          ],
          "negate": false,
          "operator": "OR"
        }
      ]
    },
    {
      "nodes": [
        {
          "cpeMatch": [
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.9:*:*:*:*:*:*:*",
              "matchCriteriaId": "D9237145-35F8-4E05-B730-77C0F386E5B2",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.9:r18423:*:*:*:*:*:*",
              "matchCriteriaId": "11743FC1-0DD5-4946-AECF-C9962BF7C21F",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.9.0:*:*:*:*:*:*:*",
              "matchCriteriaId": "52179EC7-CAF0-42AA-A21A-7105E10CA122",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.9.0:r18423:*:*:*:*:*:*",
              "matchCriteriaId": "D906EA97-7071-4CFA-84EF-EC82D813D7AE",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.9.0-0:*:*:*:*:*:*:*",
              "matchCriteriaId": "A2D5127F-1E79-4F83-8BB0-C479B6CFE9AE",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.9.0-1:*:*:*:*:*:*:*",
              "matchCriteriaId": "31181BA2-71A7-40C8-9E08-8FEAB013977B",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.9.0-2:*:*:*:*:*:*:*",
              "matchCriteriaId": "EB8F3772-C973-41DB-AB3A-F4323418FC7F",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.9.0-20060415:*:*:*:*:*:*:*",
              "matchCriteriaId": "A688B357-7096-4362-A7DD-5A24FB0AF431",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.9.0-20070709:*:*:*:*:*:*:*",
              "matchCriteriaId": "46913DE9-8AE6-40E5-AEA1-6D2524EE7581",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.9.1:*:*:*:*:*:*:*",
              "matchCriteriaId": "C78BB1D8-0505-484D-B824-1AA219F8B247",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.9.1:-p0:*:*:*:*:*:*",
              "matchCriteriaId": "470CF526-96F6-4DD1-B687-17106051A6D5",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.9.1:-p129:*:*:*:*:*:*",
              "matchCriteriaId": "52159D9F-8CD3-4103-82E6-BDE035BA3625",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.9.1:-p243:*:*:*:*:*:*",
              "matchCriteriaId": "EC0FD3F8-73A3-4518-8892-1E34D709FB89",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.9.1:-p376:*:*:*:*:*:*",
              "matchCriteriaId": "4B846CCE-7D1D-4A7E-95D8-50F92CF79AC6",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.9.1:-p429:*:*:*:*:*:*",
              "matchCriteriaId": "CB99DD31-7355-4FF1-AE41-CC156F83D7A2",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.9.1:-preview_1:*:*:*:*:*:*",
              "matchCriteriaId": "A7E15263-74D3-42D4-B37C-C649F68EDECC",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.9.1:-preview_2:*:*:*:*:*:*",
              "matchCriteriaId": "BA7FEA9B-06CE-4D08-9D61-2526ED5AE630",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.9.1:-rc1:*:*:*:*:*:*",
              "matchCriteriaId": "0D7F7EA5-7F6C-4C15-AB97-024836DC4862",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.9.1:-rc2:*:*:*:*:*:*",
              "matchCriteriaId": "236B38D1-0CCA-43C5-B2FC-1224F4F4E165",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.9.2:*:*:*:*:*:*:*",
              "matchCriteriaId": "5178D04D-1C29-4353-8987-559AA07443EC",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.9.2:dev:*:*:*:*:*:*",
              "matchCriteriaId": "D19F541D-98C2-42A6-9364-D6D9A279796E",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.9.2-p136:*:*:*:*:*:*:*",
              "matchCriteriaId": "BCD01B23-A519-4FB8-99A1-1F91E6267E22",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.9.2-p180:*:*:*:*:*:*:*",
              "matchCriteriaId": "C9035B9B-CAFA-49F2-900D-78108FDAFB90",
              "vulnerable": true
            }
          ],
          "negate": false,
          "operator": "OR"
        }
      ]
    }
  ],
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "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."
    },
    {
      "lang": "es",
      "value": "La funci\u00f3n 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\u00f3n, 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."
    }
  ],
  "id": "CVE-2011-2705",
  "lastModified": "2026-06-16T23:31:50.220",
  "metrics": {
    "cvssMetricV2": [
      {
        "acInsufInfo": false,
        "baseSeverity": "MEDIUM",
        "cvssData": {
          "accessComplexity": "LOW",
          "accessVector": "NETWORK",
          "authentication": "NONE",
          "availabilityImpact": "NONE",
          "baseScore": 5.0,
          "confidentialityImpact": "PARTIAL",
          "integrityImpact": "NONE",
          "vectorString": "AV:N/AC:L/Au:N/C:P/I:N/A:N",
          "version": "2.0"
        },
        "exploitabilityScore": 10.0,
        "impactScore": 2.9,
        "obtainAllPrivilege": false,
        "obtainOtherPrivilege": false,
        "obtainUserPrivilege": false,
        "source": "nvd@nist.gov",
        "type": "Primary",
        "userInteractionRequired": false
      }
    ]
  },
  "published": "2011-08-05T21:55:04.530",
  "references": [
    {
      "source": "secalert@redhat.com",
      "tags": [
        "Patch"
      ],
      "url": "http://lists.fedoraproject.org/pipermail/package-announce/2011-July/063062.html"
    },
    {
      "source": "secalert@redhat.com",
      "url": "http://lists.fedoraproject.org/pipermail/package-announce/2011-July/063071.html"
    },
    {
      "source": "secalert@redhat.com",
      "url": "http://redmine.ruby-lang.org/issues/4579"
    },
    {
      "source": "secalert@redhat.com",
      "tags": [
        "Patch"
      ],
      "url": "http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision\u0026revision=32050"
    },
    {
      "source": "secalert@redhat.com",
      "url": "http://svn.ruby-lang.org/repos/ruby/tags/v1_8_7_352/ChangeLog"
    },
    {
      "source": "secalert@redhat.com",
      "url": "http://svn.ruby-lang.org/repos/ruby/tags/v1_9_2_290/ChangeLog"
    },
    {
      "source": "secalert@redhat.com",
      "tags": [
        "Patch"
      ],
      "url": "http://www.openwall.com/lists/oss-security/2011/07/11/1"
    },
    {
      "source": "secalert@redhat.com",
      "tags": [
        "Patch"
      ],
      "url": "http://www.openwall.com/lists/oss-security/2011/07/12/14"
    },
    {
      "source": "secalert@redhat.com",
      "tags": [
        "Patch"
      ],
      "url": "http://www.openwall.com/lists/oss-security/2011/07/20/1"
    },
    {
      "source": "secalert@redhat.com",
      "tags": [
        "Patch"
      ],
      "url": "http://www.openwall.com/lists/oss-security/2011/07/20/16"
    },
    {
      "source": "secalert@redhat.com",
      "url": "http://www.redhat.com/support/errata/RHSA-2011-1581.html"
    },
    {
      "source": "secalert@redhat.com",
      "tags": [
        "Patch"
      ],
      "url": "http://www.ruby-lang.org/en/news/2011/07/02/ruby-1-8-7-p352-released/"
    },
    {
      "source": "secalert@redhat.com",
      "tags": [
        "Patch"
      ],
      "url": "http://www.ruby-lang.org/en/news/2011/07/15/ruby-1-9-2-p290-is-released/"
    },
    {
      "source": "secalert@redhat.com",
      "url": "http://www.securityfocus.com/bid/49015"
    },
    {
      "source": "secalert@redhat.com",
      "tags": [
        "Patch"
      ],
      "url": "https://bugzilla.redhat.com/show_bug.cgi?id=722415"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "tags": [
        "Patch"
      ],
      "url": "http://lists.fedoraproject.org/pipermail/package-announce/2011-July/063062.html"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "http://lists.fedoraproject.org/pipermail/package-announce/2011-July/063071.html"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "http://redmine.ruby-lang.org/issues/4579"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "tags": [
        "Patch"
      ],
      "url": "http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision\u0026revision=32050"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "http://svn.ruby-lang.org/repos/ruby/tags/v1_8_7_352/ChangeLog"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "http://svn.ruby-lang.org/repos/ruby/tags/v1_9_2_290/ChangeLog"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "tags": [
        "Patch"
      ],
      "url": "http://www.openwall.com/lists/oss-security/2011/07/11/1"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "tags": [
        "Patch"
      ],
      "url": "http://www.openwall.com/lists/oss-security/2011/07/12/14"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "tags": [
        "Patch"
      ],
      "url": "http://www.openwall.com/lists/oss-security/2011/07/20/1"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "tags": [
        "Patch"
      ],
      "url": "http://www.openwall.com/lists/oss-security/2011/07/20/16"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "http://www.redhat.com/support/errata/RHSA-2011-1581.html"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "tags": [
        "Patch"
      ],
      "url": "http://www.ruby-lang.org/en/news/2011/07/02/ruby-1-8-7-p352-released/"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "tags": [
        "Patch"
      ],
      "url": "http://www.ruby-lang.org/en/news/2011/07/15/ruby-1-9-2-p290-is-released/"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "http://www.securityfocus.com/bid/49015"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "tags": [
        "Patch"
      ],
      "url": "https://bugzilla.redhat.com/show_bug.cgi?id=722415"
    }
  ],
  "sourceIdentifier": "secalert@redhat.com",
  "vulnStatus": "Modified",
  "weaknesses": [
    {
      "description": [
        {
          "lang": "en",
          "value": "CWE-20"
        }
      ],
      "source": "nvd@nist.gov",
      "type": "Primary"
    }
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…