CVE-2012-2126 in Rubygems and 2 more products
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.
Affects 3 products from 3 vendors. Facts below cite their sources.
Remotely exploitable over the network, no confidentiality impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Rubygems | Rubygems | ≤ 1.8.22 |
Platforms listed by the source (the vulnerable product runs on these; they are not themselves vulnerable): Canonical Ubuntu Linux, Redhat Openshift
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2012-2126 |
|---|---|
| BreachSpider ID | BS-2013-GLOBAL-316506-M |
| CVSS vector | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| Published | 2013-10-01 |
| Last modified | 2026-06-16 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-310: Cryptographic Issues
Broad class covering misuse of cryptography: weak algorithms, insufficient key length, improper certificate validation.
Analysis AI-written, not human-reviewed
This vulnerability was disclosed in 2013. A medium severity vulnerability affects Canonical systems (CVE-2012-2126). No public exploit code is currently available. Isolate affected systems if patching is not feasible.
Vulnerability details: 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. CVSS vector: AV:N/AC:M/Au:N/C:N/I:P/A:N.
Questions
What is CVE-2012-2126?
This vulnerability was disclosed in 2013. A medium severity vulnerability affects Canonical systems (CVE-2012-2126). No public exploit code is currently available. Isolate affected systems if patching is not feasible.
What is the CVSS score for CVE-2012-2126?
CVE-2012-2126 has CVSS 4.3 (Medium). Vector: AV:N/AC:M/Au:N/C:N/I:P/A:N. EPSS: 1.4%.
Is CVE-2012-2126 actively exploited?
No confirmed active exploitation of CVE-2012-2126 as of 2026-09-25.
How do I remediate CVE-2012-2126?
Priority: MONITOR.
What systems are affected by CVE-2012-2126?
CVE-2012-2126 affects Rubygems Rubygems.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Rubygems","product":"Rubygems","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-16.