{"dataType": "CVE_RECORD", "containers": {"adp": [{"metrics": [{"other": {"type": "Unknown", "content": {"data": "{\"description\":\"not yet assigned\"}"}}}], "affected": [{"vendor": "debian", "product": "rubygems", "versions": [{"status": "affected", "version": "0", "lessThan": "1.8.24-1", "versionType": "deb"}], "platforms": ["bookworm", "forky", "sid", "trixie"], "defaultStatus": "unaffected"}, {"vendor": "debian", "product": "rubygems-doc", "versions": [{"status": "affected", "version": "0", "lessThan": "1.8.24-1", "versionType": "deb"}], "platforms": ["bookworm", "forky", "sid", "trixie"], "defaultStatus": "unaffected"}, {"vendor": "debian", "product": "rubygems1.8", "versions": [{"status": "affected", "version": "0", "lessThan": "1.8.24-1", "versionType": "deb"}], "platforms": ["bookworm", "forky", "sid", "trixie"], "defaultStatus": "unaffected"}], "references": [{"url": "https://security-tracker.debian.org/tracker/CVE-2012-2126"}], "descriptions": [{"lang": "en", "value": "RubyGems before 1.8.23 does not verify an SSL certificate, which allows remote attackers to modify a gem during installation via a man-in-the-middle attack."}], "providerMetadata": {"orgId": "79363d38-fa19-49d1-9214-5f28da3f3ac5", "shortName": "debian", "dateUpdated": "2013-10-01T17:00:00.000Z", "x_subShortName": "debian"}}, {"metrics": [{"other": {"type": "Unknown", "content": {"data": "{\"description\":\"MODERATE\"}"}}}], "affected": [{"vendor": "oraclelinux", "product": "rubygems", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.3.7-4.el6_4", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:6"], "defaultStatus": "unaffected"}], "references": [{"url": "https://linux.oracle.com/cve/CVE-2012-2126.html"}], "descriptions": [{"lang": "en", "value": "RubyGems before 1.8.23 does not verify an SSL certificate, which allows remote attackers to modify a gem during installation via a man-in-the-middle attack."}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000006", "shortName": "oraclelinux", "dateUpdated": "2013-10-17T00:00:00Z", "x_subShortName": "oraclelinux"}}, {"metrics": [{"cvssV2_0": {"version": "2.0", "baseScore": 4.0, "accessVector": "NETWORK", "vectorString": "AV:N/AC:H/Au:N/C:P/I:P/A:N", "authentication": "NONE", "integrityImpact": "PARTIAL", "accessComplexity": "HIGH", "availabilityImpact": "NONE", "confidentialityImpact": "PARTIAL"}}, {"other": {"type": "Unknown", "content": {"data": "{\"description\":\"Moderate\"}"}}}], "affected": [{"vendor": "redhat", "product": "rubygems", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.3.7-4.el6_4", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:6"], "defaultStatus": "unaffected"}], "references": [{"url": "https://access.redhat.com/errata/RHSA-2013:1441"}, {"url": "https://access.redhat.com/security/cve/CVE-2012-2126"}], "descriptions": [{"lang": "en", "value": "RubyGems is the Ruby standard for publishing and managing third-party\nlibraries.\n\nIt was found that RubyGems did not verify SSL connections. This could lead\nto man-in-the-middle attacks. (CVE-2012-2126)\n\nIt was found that, when using RubyGems, the connection could be redirected\nfrom HTTPS to HTTP. This could lead to a user believing they are installing\na gem via HTTPS, when the connection may have been silently downgraded to\nHTTP. (CVE-2012-2125)\n\nIt was discovered that the rubygems API validated version strings using an\nunsafe regular expression. An application making use of this API to process\na version string from an untrusted source could be vulnerable to a denial\nof service attack through CPU exhaustion. (CVE-2013-4287)\n\nRed Hat would like to thank Rubygems upstream for reporting CVE-2013-4287.\nUpstream acknowledges Damir Sharipov as the original reporter.\n\nAll rubygems users are advised to upgrade to this updated package, which\ncontains backported patches to correct these issues."}], "providerMetadata": {"orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749", "shortName": "redhat", "dateUpdated": "2012-04-19T00:00:00Z", "x_subShortName": "redhat_6"}}, {"metrics": [{"other": {"type": "Unknown", "content": {"data": "{\"description\":\"medium\"}"}}}], "affected": [{"vendor": "canonical", "product": "jruby", "platforms": ["trusty"], "defaultStatus": "unknown"}, {"vendor": "unknown", "product": "unknown", "defaultStatus": "unknown"}], "references": [{"url": "https://ubuntu.com/security/CVE-2012-2126"}, {"url": "https://ubuntu.com/security/notices/USN-1582-1"}, {"url": "https://ubuntu.com/security/notices/USN-1583-1"}, {"url": "https://www.cve.org/CVERecord?id=CVE-2012-2126"}], "descriptions": [{"lang": "en", "value": "RubyGems before 1.8.23 does not verify an SSL certificate, which allows remote attackers to modify a gem during installation via a man-in-the-middle attack."}, {"lang": "en", "value": "not defined"}], "providerMetadata": {"orgId": "cc1ad9ee-3454-478d-9317-d3e869d708bc", "shortName": "canonical", "dateUpdated": "2012-04-20T00:00:00Z", "x_subShortName": "canonical"}}], "cna": {"metrics": [{"format": "CVSS", "cvssV2_0": {"version": "2.0", "baseScore": 4.3, "accessVector": "NETWORK", "vectorString": "AV:N/AC:M/Au:N/C:N/I:P/A:N", "authentication": "NONE", "integrityImpact": "PARTIAL", "accessComplexity": "MEDIUM", "availabilityImpact": "NONE", "confidentialityImpact": "NONE"}}], "affected": [{"cpes": ["cpe:2.3:a:rubygems:rubygems:*:*:*:*:*:*:*:*", "cpe:2.3:a:rubygems:rubygems:1.8.0:*:*:*:*:*:*:*", "cpe:2.3:a:rubygems:rubygems:1.8.10:*:*:*:*:*:*:*", "cpe:2.3:a:rubygems:rubygems:1.8.11:*:*:*:*:*:*:*", "cpe:2.3:a:rubygems:rubygems:1.8.12:*:*:*:*:*:*:*", "cpe:2.3:a:rubygems:rubygems:1.8.13:*:*:*:*:*:*:*", "cpe:2.3:a:rubygems:rubygems:1.8.14:*:*:*:*:*:*:*", "cpe:2.3:a:rubygems:rubygems:1.8.15:*:*:*:*:*:*:*", "cpe:2.3:a:rubygems:rubygems:1.8.16:*:*:*:*:*:*:*", "cpe:2.3:a:rubygems:rubygems:1.8.17:*:*:*:*:*:*:*", "cpe:2.3:a:rubygems:rubygems:1.8.18:*:*:*:*:*:*:*", "cpe:2.3:a:rubygems:rubygems:1.8.19:*:*:*:*:*:*:*", "cpe:2.3:a:rubygems:rubygems:1.8.1:*:*:*:*:*:*:*", "cpe:2.3:a:rubygems:rubygems:1.8.20:*:*:*:*:*:*:*", "cpe:2.3:a:rubygems:rubygems:1.8.21:*:*:*:*:*:*:*", "cpe:2.3:a:rubygems:rubygems:1.8.2:*:*:*:*:*:*:*", "cpe:2.3:a:rubygems:rubygems:1.8.3:*:*:*:*:*:*:*", "cpe:2.3:a:rubygems:rubygems:1.8.4:*:*:*:*:*:*:*", "cpe:2.3:a:rubygems:rubygems:1.8.5:*:*:*:*:*:*:*", "cpe:2.3:a:rubygems:rubygems:1.8.6:*:*:*:*:*:*:*", "cpe:2.3:a:rubygems:rubygems:1.8.7:*:*:*:*:*:*:*", "cpe:2.3:a:rubygems:rubygems:1.8.8:*:*:*:*:*:*:*", "cpe:2.3:a:rubygems:rubygems:1.8.9:*:*:*:*:*:*:*"], "vendor": "rubygems", "product": "rubygems", "versions": [{"status": "affected", "version": "0", "versionType": "custom", "lessThanOrEqual": "1.8.22"}, {"status": "affected", "version": "1.8.0"}, {"status": "affected", "version": "1.8.1"}, {"status": "affected", "version": "1.8.10"}, {"status": "affected", "version": "1.8.11"}, {"status": "affected", "version": "1.8.12"}, {"status": "affected", "version": "1.8.13"}, {"status": "affected", "version": "1.8.14"}, {"status": "affected", "version": "1.8.15"}, {"status": "affected", "version": "1.8.16"}, {"status": "affected", "version": "1.8.17"}, {"status": "affected", "version": "1.8.18"}, {"status": "affected", "version": "1.8.19"}, {"status": "affected", "version": "1.8.2"}, {"status": "affected", "version": "1.8.20"}, {"status": "affected", "version": "1.8.21"}, {"status": "affected", "version": "1.8.3"}, {"status": "affected", "version": "1.8.4"}, {"status": "affected", "version": "1.8.5"}, {"status": "affected", "version": "1.8.6"}, {"status": "affected", "version": "1.8.7"}, {"status": "affected", "version": "1.8.8"}, {"status": "affected", "version": "1.8.9"}], "platforms": ["cpe:2.3:o:canonical:ubuntu_linux:12.04:-:lts:*:*:*:*:*"], "defaultStatus": "unaffected"}], "references": [{"url": "https://github.com/rubygems/rubygems/blob/1.8/History.txt", "tags": ["patch", "vendor-advisory"]}, {"url": "http://rhn.redhat.com/errata/RHSA-2013-1203.html"}, {"url": "http://rhn.redhat.com/errata/RHSA-2013-1441.html"}, {"url": "http://rhn.redhat.com/errata/RHSA-2013-1852.html"}, {"url": "http://secunia.com/advisories/55381"}, {"url": "http://www.openwall.com/lists/oss-security/2012/04/20/24"}, {"url": "http://www.ubuntu.com/usn/USN-1582-1/"}, {"url": "https://bugzilla.redhat.com/show_bug.cgi?id=814718"}], "descriptions": [{"lang": "en", "value": "RubyGems before 1.8.23 does not verify an SSL certificate, which allows remote attackers to modify a gem during installation via a man-in-the-middle attack."}, {"lang": "es", "value": "RubyGems anteriores a 1.8.23 no verifican un certificado SSL, lo cual permite a atacantes remotos modificar una gema durante la instalación a través de un ataque man-in-the-middle."}], "problemTypes": [{"descriptions": [{"lang": "en", "cweId": "CWE-310", "description": "CWE-310"}]}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000003", "shortName": "nvd", "dateUpdated": "2013-10-01T17:55:03Z", "x_subShortName": "nvd"}}}, "cveMetadata": {"cveId": "CVE-2012-2126", "state": "PUBLISHED", "dateUpdated": "2025-04-11T00:51:21Z", "assignerOrgId": "53f830b8-0a3f-465b-8143-3b8a9948e749", "datePublished": "2013-10-01T17:55:03Z", "assignerShortName": "redhat"}, "dataVersion": "5.0"}