{"dataType": "CVE_RECORD", "containers": {"adp": [{"metrics": [{"other": {"type": "Unknown", "content": {"data": "{\"description\":\"LOW\"}"}}}], "affected": [{"vendor": "oraclelinux", "product": "ruby", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.8.7.352-3.el6", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:6"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "ruby-devel", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.8.7.352-3.el6", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:6"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "ruby-docs", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.8.7.352-3.el6", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:6"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "ruby-irb", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.8.7.352-3.el6", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:6"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "ruby-libs", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.8.7.352-3.el6", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:6"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "ruby-rdoc", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.8.7.352-3.el6", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:6"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "ruby-ri", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.8.7.352-3.el6", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:6"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "ruby-static", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.8.7.352-3.el6", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:6"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "ruby-tcltk", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.8.7.352-3.el6", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:6"], "defaultStatus": "unaffected"}], "references": [{"url": "https://linux.oracle.com/cve/CVE-2011-2705.html"}], "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."}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000006", "shortName": "oraclelinux", "dateUpdated": "2011-12-14T00:00:00Z", "x_subShortName": "oraclelinux"}}, {"metrics": [{"cvssV2_0": {"version": "2.0", "baseScore": 2.1, "accessVector": "LOCAL", "vectorString": "AV:L/AC:L/Au:N/C:P/I:N/A:N", "authentication": "NONE", "integrityImpact": "NONE", "accessComplexity": "LOW", "availabilityImpact": "NONE", "confidentialityImpact": "PARTIAL"}}, {"other": {"type": "Unknown", "content": {"data": "{\"description\":\"Low\"}"}}}], "affected": [{"vendor": "redhat", "product": "ruby", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.8.7.352-3.el6", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:6"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "ruby-devel", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.8.7.352-3.el6", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:6"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "ruby-docs", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.8.7.352-3.el6", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:6"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "ruby-irb", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.8.7.352-3.el6", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:6"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "ruby-libs", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.8.7.352-3.el6", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:6"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "ruby-rdoc", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.8.7.352-3.el6", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:6"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "ruby-ri", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.8.7.352-3.el6", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:6"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "ruby-static", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.8.7.352-3.el6", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:6"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "ruby-tcltk", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.8.7.352-3.el6", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:6"], "defaultStatus": "unaffected"}], "references": [{"url": "https://access.redhat.com/errata/RHSA-2011:1581"}, {"url": "https://access.redhat.com/security/cve/CVE-2011-2705"}], "descriptions": [{"lang": "en", "value": "Ruby is an extensible, interpreted, object-oriented, scripting language. It\nhas features to process text files and to do system management tasks.\n\nIt was found that Ruby did not reinitialize the PRNG (pseudorandom number\ngenerator) after forking a child process. This could eventually lead to the\nPRNG returning the same result twice. An attacker keeping track of the\nvalues returned by one child process could use this flaw to predict the\nvalues the PRNG would return in other child processes (as long as the\nparent process persisted). (CVE-2011-3009)\n\nA flaw was found in the Ruby SecureRandom module. When using the\nSecureRandom.random_bytes class, the PRNG state was not modified after\nforking a child process. This could eventually lead to\nSecureRandom.random_bytes returning the same string more than once. An\nattacker keeping track of the strings returned by one child process could\nuse this flaw to predict the strings SecureRandom.random_bytes would return\nin other child processes (as long as the parent process persisted).\n(CVE-2011-2705)\n\nThis update also fixes the following bugs:\n\n* The ruby package has been upgraded to upstream point release 1.8.7-p352,\nwhich provides a number of bug fixes over the previous version. (BZ#706332)\n\n* The MD5 message-digest algorithm is not a FIPS-approved algorithm.\nConsequently, when a Ruby script attempted to calculate an MD5 checksum in\nFIPS mode, the interpreter terminated unexpectedly. This bug has been fixed\nand an exception is now raised in the described scenario. (BZ#717709)\n\n* Due to inappropriately handled line continuations in the mkconfig.rb\nsource file, an attempt to build the ruby package resulted in unexpected\ntermination. An upstream patch has been applied to address this issue and\nthe ruby package can now be built properly. (BZ#730287)\n\n* When the 32-bit ruby-libs library was installed on a 64-bit machine, the\nmkmf library failed to load various modules necessary for building\nRuby-related packages. This bug has been fixed and mkmf now works properly\nin the described scenario. (BZ#674787)\n\n* Previously, the load paths for scripts and binary modules were duplicated\non the i386 architecture. Consequently, an ActiveSupport test failed. With\nthis update, the load paths are no longer stored in duplicates on the i386\narchitecture. (BZ#722887)\n\nThis update also adds the following enhancement:\n\n* With this update, SystemTap probes have been added to the ruby package.\n(BZ#673162)\n\nAll users of ruby are advised to upgrade to these updated packages, which\nresolve these issues and add this enhancement."}], "providerMetadata": {"orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749", "shortName": "redhat", "dateUpdated": "2011-07-02T00:00:00Z", "x_subShortName": "redhat_6"}}, {"metrics": [{"other": {"type": "Unknown", "content": {"data": "{\"description\":\"Moderate\"}"}}}], "affected": [{"vendor": "suse", "product": "ruby", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.8.7.p357-0.7.1", "versionType": "rpm"}], "platforms": ["cpe:/o:suse:sles:11:sp1", "cpe:/o:suse:sles:11:sp2"], "defaultStatus": "unaffected"}, {"vendor": "suse", "product": "ruby-doc-html", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.8.7.p357-0.7.1", "versionType": "rpm"}], "platforms": ["cpe:/o:suse:sles:11:sp1", "cpe:/o:suse:sles:11:sp2"], "defaultStatus": "unaffected"}, {"vendor": "suse", "product": "ruby-tk", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.8.7.p357-0.7.1", "versionType": "rpm"}], "platforms": ["cpe:/o:suse:sles:11:sp1", "cpe:/o:suse:sles:11:sp2"], "defaultStatus": "unaffected"}, {"vendor": "suse", "product": "ruby", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.8.7.p357-0.9.9.1", "versionType": "rpm"}], "platforms": ["cpe:/o:suse:sles:11:sp3"], "defaultStatus": "unaffected"}, {"vendor": "suse", "product": "ruby-doc-html", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.8.7.p357-0.9.9.1", "versionType": "rpm"}], "platforms": ["cpe:/o:suse:sles:11:sp3"], "defaultStatus": "unaffected"}, {"vendor": "suse", "product": "ruby-tk", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.8.7.p357-0.9.9.1", "versionType": "rpm"}], "platforms": ["cpe:/o:suse:sles:11:sp3"], "defaultStatus": "unaffected"}, {"vendor": "suse", "product": "ruby", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.8.7.p357-0.9.17.1", "versionType": "rpm"}], "platforms": ["cpe:/o:suse:sles:11:sp4"], "defaultStatus": "unaffected"}, {"vendor": "suse", "product": "ruby-doc-html", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.8.7.p357-0.9.17.1", "versionType": "rpm"}], "platforms": ["cpe:/o:suse:sles:11:sp4"], "defaultStatus": "unaffected"}, {"vendor": "suse", "product": "ruby-tk", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.8.7.p357-0.9.17.1", "versionType": "rpm"}], "platforms": ["cpe:/o:suse:sles:11:sp4"], "defaultStatus": "unaffected"}], "solutions": [{"lang": "en", "value": "SUSE bug 704409"}], "references": [{"url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-2705", "name": "Mitre CVE-2011-2705"}, {"url": "https://www.suse.com/security/cve/CVE-2011-2705", "name": "SUSE CVE-2011-2705"}, {"url": "https://lists.suse.com/pipermail/sle-security-updates/2012-February/000017.html", "name": "SUSE-SU-2012:0147-1"}], "descriptions": [{"lang": "en", "value": "\n    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.\n    "}], "providerMetadata": {"orgId": "404e59f5-483d-4b8a-8e7a-e67604dd8afb", "shortName": "suse", "dateUpdated": "2021-04-30T00:00:00Z", "x_subShortName": "suse_server_11"}}], "cna": {"metrics": [{"format": "CVSS", "cvssV2_0": {"version": "2.0", "baseScore": 5, "accessVector": "NETWORK", "vectorString": "AV:N/AC:L/Au:N/C:P/I:N/A:N", "authentication": "NONE", "integrityImpact": "NONE", "accessComplexity": "LOW", "availabilityImpact": "NONE", "confidentialityImpact": "PARTIAL"}}], "affected": [{"cpes": ["cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:*", "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.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.9.0-0:*:*:*:*:*:*:*", "cpe:2.3:a:ruby-lang:ruby:1.9.0-1:*:*:*:*:*:*:*", "cpe:2.3:a:ruby-lang:ruby:1.9.0-20060415:*:*:*:*:*:*:*", "cpe:2.3:a:ruby-lang:ruby:1.9.0-20070709:*:*:*:*:*:*:*", "cpe:2.3:a:ruby-lang:ruby:1.9.0-2:*:*:*:*:*:*:*", "cpe:2.3:a:ruby-lang:ruby:1.9.0:*:*:*:*:*:*:*", "cpe:2.3:a:ruby-lang:ruby:1.9.0:r18423:*:*:*:*:*:*", "cpe:2.3:a:ruby-lang:ruby:1.9.1:*:*:*:*:*:*:*", "cpe:2.3:a:ruby-lang:ruby:1.9.1:-p0:*:*:*:*:*:*", "cpe:2.3:a:ruby-lang:ruby:1.9.1:-p129:*:*:*:*:*:*", "cpe:2.3:a:ruby-lang:ruby:1.9.1:-p243:*:*:*:*:*:*", "cpe:2.3:a:ruby-lang:ruby:1.9.1:-p376:*:*:*:*:*:*", "cpe:2.3:a:ruby-lang:ruby:1.9.1:-p429:*:*:*:*:*:*", "cpe:2.3:a:ruby-lang:ruby:1.9.1:-preview_1:*:*:*:*:*:*", "cpe:2.3:a:ruby-lang:ruby:1.9.1:-preview_2:*:*:*:*:*:*", "cpe:2.3:a:ruby-lang:ruby:1.9.1:-rc1:*:*:*:*:*:*", "cpe:2.3:a:ruby-lang:ruby:1.9.1:-rc2:*:*:*:*:*:*", "cpe:2.3:a:ruby-lang:ruby:1.9.2-p136:*:*:*:*:*:*:*", "cpe:2.3:a:ruby-lang:ruby:1.9.2-p180:*:*:*:*:*:*:*", "cpe:2.3:a:ruby-lang:ruby:1.9.2:*:*:*:*:*:*:*", "cpe:2.3:a:ruby-lang:ruby:1.9.2:dev:*:*:*:*:*:*", "cpe:2.3:a:ruby-lang:ruby:1.9:*:*:*:*:*:*:*", "cpe:2.3:a:ruby-lang:ruby:1.9:r18423:*:*:*:*:*:*"], "vendor": "ruby-lang", "product": "ruby", "versions": [{"status": "affected", "version": "0", "versionType": "custom", "lessThanOrEqual": "1.8.7-334"}, {"status": "affected", "version": "1.8.7"}, {"status": "affected", "version": "1.8.7-160"}, {"status": "affected", "version": "1.8.7-173"}, {"status": "affected", "version": "1.8.7-248"}, {"status": "affected", "version": "1.8.7-249"}, {"status": "affected", "version": "1.8.7-299"}, {"status": "affected", "version": "1.8.7-302"}, {"status": "affected", "version": "1.8.7-330"}, {"status": "affected", "version": "1.8.7-p21"}, {"status": "affected", "version": "1.9"}, {"status": "affected", "version": "1.9.0"}, {"status": "affected", "version": "1.9.0-0"}, {"status": "affected", "version": "1.9.0-1"}, {"status": "affected", "version": "1.9.0-2"}, {"status": "affected", "version": "1.9.0-20060415"}, {"status": "affected", "version": "1.9.0-20070709"}, {"status": "affected", "version": "1.9.1"}, {"status": "affected", "version": "1.9.2"}, {"status": "affected", "version": "1.9.2-p136"}, {"status": "affected", "version": "1.9.2-p180"}], "defaultStatus": "unaffected"}], "references": [{"url": "http://lists.fedoraproject.org/pipermail/package-announce/2011-July/063062.html", "tags": ["patch"]}, {"url": "http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=32050", "tags": ["patch"]}, {"url": "http://www.openwall.com/lists/oss-security/2011/07/11/1", "tags": ["patch"]}, {"url": "http://www.openwall.com/lists/oss-security/2011/07/12/14", "tags": ["patch"]}, {"url": "http://www.openwall.com/lists/oss-security/2011/07/20/1", "tags": ["patch"]}, {"url": "http://www.openwall.com/lists/oss-security/2011/07/20/16", "tags": ["patch"]}, {"url": "http://www.ruby-lang.org/en/news/2011/07/02/ruby-1-8-7-p352-released/", "tags": ["patch"]}, {"url": "http://www.ruby-lang.org/en/news/2011/07/15/ruby-1-9-2-p290-is-released/", "tags": ["patch"]}, {"url": "https://bugzilla.redhat.com/show_bug.cgi?id=722415", "tags": ["patch"]}, {"url": "http://lists.fedoraproject.org/pipermail/package-announce/2011-July/063071.html"}, {"url": "http://redmine.ruby-lang.org/issues/4579"}, {"url": "http://svn.ruby-lang.org/repos/ruby/tags/v1_8_7_352/ChangeLog"}, {"url": "http://svn.ruby-lang.org/repos/ruby/tags/v1_9_2_290/ChangeLog"}, {"url": "http://www.redhat.com/support/errata/RHSA-2011-1581.html"}, {"url": "http://www.securityfocus.com/bid/49015"}], "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ó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."}], "problemTypes": [{"descriptions": [{"lang": "en", "cweId": "CWE-20", "description": "CWE-20"}]}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000003", "shortName": "nvd", "dateUpdated": "2011-08-05T21:55:04Z", "x_subShortName": "nvd"}}}, "cveMetadata": {"cveId": "CVE-2011-2705", "state": "PUBLISHED", "dateUpdated": "2025-04-11T00:51:21Z", "assignerOrgId": "53f830b8-0a3f-465b-8143-3b8a9948e749", "datePublished": "2011-08-05T21:55:04Z", "assignerShortName": "redhat"}, "dataVersion": "5.0"}