Skip to content
Noroxi
CVE-2012-2125· NVD / CVE Program· CNA redhat

RubyGems before 1.8.23 can redirect HTTPS connections to HTTP, which makes it easier for remote attackers to observe or modify a gem during

RubyGems before 1.8.23 can redirect HTTPS connections to HTTP, which makes it easier for remote attackers to observe or modify a gem during installation via a man-in-the-middle attack.

MediumCVSS 5.8 · v2.0—No exploit Fix available
Published
Oct 1, 2013
Updated
Jun 16, 2026
EPSS
2.5% · 84th percentile
CWE
—
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

24

Monitor

Low priority for now.

CVSS
23 / 40 · 5.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
1 / 30 · 2.5%

Affected systems

VendorProduct
rubygemsrubygems
redhatopenshift
canonicalubuntu linux

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • rubygems rubygemsup to 1.8.22 inclusive
  • rubygems rubygems1.8.0
  • rubygems rubygems1.8.1
  • rubygems rubygems1.8.10
  • rubygems rubygems1.8.11
  • rubygems rubygems1.8.12
  • rubygems rubygems1.8.13
  • rubygems rubygems1.8.14
  • rubygems rubygems1.8.15
  • rubygems rubygems1.8.16
  • rubygems rubygems1.8.17
  • rubygems rubygems1.8.18
  • rubygems rubygems1.8.19
  • rubygems rubygems1.8.2
  • rubygems rubygems1.8.20
  • rubygems rubygems1.8.21
  • rubygems rubygems1.8.3
  • rubygems rubygems1.8.4
  • rubygems rubygems1.8.5
  • rubygems rubygems1.8.6

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:12rubygemsbefore 1.8.24-11.8.24-1
Red Hat:enterprise_linux:6::clientrubygemsbefore 0:1.3.7-4.el6_40:1.3.7-4.el6_4
Red Hat:enterprise_mrg:2:computenode:el6rubygemsbefore 0:1.8.23.2-1.el60:1.8.23.2-1.el6
Red Hat:enterprise_mrg:2:server:el6cuminbefore 0:0.1.5787-4.el60:0.1.5787-4.el6
Red Hat:openshift:1.2::el6rubygemsbefore 0:1.8.24-4.el6op0:1.8.24-4.el6op
RubyGemsrubygems-updatebefore 1.8.231.8.23

Other highest-scoring records for the same primary product.

  • CVE-2017-0903RubyGems versions between 2.0.0 and 2.6.13 are vulnerable to a possible remote code execution vulnerability.
    44Plan
  • CVE-2017-0899RubyGems version 2.6.12 and earlier is vulnerable to maliciously crafted gem specifications that include terminal escape characters.
    42Plan
  • CVE-2018-1000076RubyGems version Ruby 2.2 series: 2.2.9 and earlier, Ruby 2.3 series: 2.3.6 and earlier, Ruby 2.4 series: 2.4.3 and earlier, Ruby 2.5 series
    40Plan
  • CVE-2017-0901RubyGems version 2.6.12 and earlier fails to validate specification names, allowing a maliciously crafted gem to potentially overwrite any f
    39Monitor
  • CVE-2019-8324An issue was discovered in RubyGems 2.6 and later through 3.0.2.
    36Monitor
  • CVE-2022-36073RubyGems allows creation of users with arbitrary unverified emails
    35Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
debian:rubygems1.8.24-1 · Debian:12Package registry (OSV)
red hat:cumin0:0.1.5787-4.el6 · Red Hat:enterprise_mrg:2:server:el6Package registry (OSV)
red hat:rubygems0:1.8.24-4.el6op · Red Hat:openshift:1.2::el6Package registry (OSV)
RubyGems:rubygems-update1.8.23Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.

Technical details

Attack conditions

    If successful

    Confidentiality
    P · data can be read
    Integrity
    P · data or configuration can be modified
    Availability
    none
    Attack complexity
    M
    Confidentiality impact
    P
    Integrity impact
    P
    Availability impact
    None

    Weakness class (CWE)

    —

    CVSS vector

    AV:N/AC:M/Au:N/C:P/I:P/A:N

    nvd-primary

    Attack context

    MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

    MITRE has no CAPEC/ATT&CK mapping for this CWE.

    Noroxi analysis

    No Noroxi analysis for this record yet

    We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

    We use this product, ask for help

    Change log

    1. Fix✗ → ✓

    For records you follow, these changes also arrive as notifications. →

    References

    All records