CVE-2012-2125: Medium severity rubygems vulnerability

Published Apr 19, 2012
·
Updated

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.

Other sources

Two security flaws were corrected in upstream rubygems v1.8.23 version: #1 RubyGems now disallows redirection from HTTPS to HTTP, #2 RubyGems now verifies SSL connections.

References: [1] https://github.com/rubygems/rubygems/blob/1.8/History.txt

Upstream patch: [2] https://github.com/rubygems/rubygems/commit/d4c7eafb8efe1e13a7abf5be5a5b4548870b15b7

Red Hat

Affected Software

31 affected componentsFixes available
rubygems/rubygems-update<1.8.23
1.8.23
redhat/rubygems<0:1.3.7-4.el6_4
0:1.3.7-4.el6_4
redhat/cumin<0:0.1.5787-4.el6
0:0.1.5787-4.el6
redhat/rubygems<0:1.8.23.2-1.el6
0:1.8.23.2-1.el6
redhat/rubygems<0:1.8.24-4.el6
0:1.8.24-4.el6
redhat/rubygem<1.8.23
1.8.23
Rubygems RubyGems<=1.8.22
Rubygems RubyGems=1.8.0
Rubygems RubyGems=1.8.1
Rubygems RubyGems=1.8.2
Rubygems RubyGems=1.8.3
Rubygems RubyGems=1.8.4
Rubygems RubyGems=1.8.5
Rubygems RubyGems=1.8.6
Rubygems RubyGems=1.8.7
Rubygems RubyGems=1.8.8
Rubygems RubyGems=1.8.9
Rubygems RubyGems=1.8.10
Rubygems RubyGems=1.8.11
Rubygems RubyGems=1.8.12
Rubygems RubyGems=1.8.13
Rubygems RubyGems=1.8.14
Rubygems RubyGems=1.8.15
Rubygems RubyGems=1.8.16
Rubygems RubyGems=1.8.17
Rubygems RubyGems=1.8.18
Rubygems RubyGems=1.8.19
Rubygems RubyGems=1.8.20
Rubygems RubyGems=1.8.21
redhat Openshift=1.2.2
Canonical Ubuntu Linux=12.04

Event History

Apr 19, 2012
CVE Published
12:00 AM
Apr 20, 2012
Data Sourced
via Red Hat·02:22 PM
DescriptionSeverityAffected Software
Oct 1, 2013
CVE Published
via MITRE·05:00 PM
Data Sourced
via MITRE·05:00 PM
Description
May 17, 2022
Advisory Published
04:54 AM

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2012-2125?

CVE-2012-2125 has been classified as a medium severity vulnerability due to its potential for man-in-the-middle attacks.

2

How do I fix CVE-2012-2125?

To fix CVE-2012-2125, update RubyGems to version 1.8.23 or later.

3

What type of vulnerability is CVE-2012-2125?

CVE-2012-2125 is a security vulnerability that allows redirects from HTTPS to HTTP, which may enable interception of gem installations.

4

Which versions of RubyGems are affected by CVE-2012-2125?

RubyGems versions before 1.8.23 are affected by CVE-2012-2125.

5

Can CVE-2012-2125 lead to data compromise?

Yes, CVE-2012-2125 can lead to data compromise through unauthorized observation or modification of gems during installation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203