Home / Rubygems / Rubygems / CVE-2012-2126
CVE-2012-2126: is it exploited, and which versions of Rubygems are affected and fixed?
CVE-2012-2126 is a vulnerability in Rubygems. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 09:38 UTC). Affected: rubygems-update before 1.8.23 (GitHub advisory GHSA-5mgj-mvv8-46mw). Fixed in 1.8.23 (GitHub advisory GHSA-5mgj-mvv8-46mw). Severity: Medium (4.3, CVSS 2.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 09:38 UTC, CVE record November 19, 2026, 07:20 UTC and NVD November 19, 2026, 08:47 UTC.
What is CVE-2012-2126?
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.
From the CVE record by redhat, last updated August 6, 2024, 19:26 UTC.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| RubyGems | rubygems-update | < 1.8.23 | 1.8.23 | GHSA-5mgj-mvv8-46mw |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated May 4, 2023. Summary: RubyGems does not verify SSL certificate.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| rubygems | rubygems | through 1.8.22 | application |
| rubygems | rubygems | 1.8.0 | application |
| rubygems | rubygems | 1.8.1 | application |
| rubygems | rubygems | 1.8.2 | application |
| rubygems | rubygems | 1.8.3 | application |
| rubygems | rubygems | 1.8.4 | application |
| rubygems | rubygems | 1.8.5 | application |
| rubygems | rubygems | 1.8.6 | application |
| rubygems | rubygems | 1.8.7 | application |
| rubygems | rubygems | 1.8.8 | application |
| rubygems | rubygems | 1.8.9 | application |
| rubygems | rubygems | 1.8.10 | application |
| rubygems | rubygems | 1.8.11 | application |
| rubygems | rubygems | 1.8.12 | application |
| rubygems | rubygems | 1.8.13 | application |
| rubygems | rubygems | 1.8.14 | application |
| rubygems | rubygems | 1.8.15 | application |
| rubygems | rubygems | 1.8.16 | application |
| rubygems | rubygems | 1.8.17 | application |
| rubygems | rubygems | 1.8.18 | application |
| rubygems | rubygems | 1.8.19 | application |
| rubygems | rubygems | 1.8.20 | application |
| rubygems | rubygems | 1.8.21 | application |
NVD analysis (status Modified), last modified June 16, 2026, 23:41 UTC.
How severe is CVE-2012-2126?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 4.3 | CVSS 2.0 | AV:N/AC:M/Au:N/C:N/I:P/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2012-2126 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 1.36% probability of exploitation activity in the next 30 days, percentile 72.6 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
Where are the vendor advisories and references?
- 55381 third-party-advisory, x_refsource_SECUNIA
- USN-1582-1 vendor-advisory, x_refsource_UBUNTU
- https://github.com/rubygems/rubygems/blob/1.8/History.txt x_refsource_CONFIRM
- RHSA-2013:1203 vendor-advisory, x_refsource_REDHAT
- https://bugzilla.redhat.com/show_bug.cgi?id=814718 x_refsource_MISC
- [oss-security] 20120420 Re: CVE Request -- rubygems: Two security fixes in upstream v1.8.23 version mailing-list, x_refsource_MLIST
- RHSA-2013:1852 vendor-advisory, x_refsource_REDHAT
- RHSA-2013:1441 vendor-advisory, x_refsource_REDHAT
When was it published, and where is the official record?
- Reserved
- April 4, 2012
- Published
- October 1, 2013, 17:00 UTC
- CVE record updated
- August 6, 2024, 19:26 UTC by redhat
- NVD
- Modified, last modified June 16, 2026, 23:41 UTC
- Last checked
- CVE list November 19, 2026, 07:20 UTC; NVD November 19, 2026, 08:47 UTC; KEV December 3, 2026, 09:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Rubygems?
- Dec 8, 2021CVE-2021-43809 rubygems: argument injection
- Jun 17, 2019CVE-2019-8321 Rubygems: argument injection
- Jun 17, 2019CVE-2019-8322 Rubygems: injection
- Jun 17, 2019CVE-2019-8323 Rubygems: injection
- Jun 17, 2019CVE-2019-8325 Rubygems: injection
- Jun 17, 2019CVE-2019-8324 Rubygems: code injection (remote code execution)
- Jun 6, 2019CVE-2019-8320 Rubygems: path traversal (reading or writing files outside the intended folder)
- Mar 13, 2018CVE-2018-1000079 Rubygems: path traversal (reading or writing files outside the intended folder)
Questions about CVE-2012-2126
Is CVE-2012-2126 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 09:38 UTC. FIRST's EPSS gives it a 1.36% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Rubygems are affected by CVE-2012-2126?
rubygems-update before 1.8.23, per the GitHub advisory GHSA-5mgj-mvv8-46mw. The tables above give every range the sources list.
Which version fixes CVE-2012-2126?
1.8.23, per the GitHub advisory GHSA-5mgj-mvv8-46mw. Check the vendor's advisory before you rely on it.
How severe is CVE-2012-2126?
Medium (4.3, CVSS 2.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2012-2126?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.