CVEfocus › CVE database › CVE-2012-2125

CVE-2012-2125

EPSS 2.5% (higher than 85% of CVEs)Published 2013-10-01Updated 2024-08-06Assigner: 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 installation via a man-in-the-middle attack.

What to do

Fixed builds are available from Debian, Red Hat, RubyGems: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

5Fixed
1Fix pending
11Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04jrubyNot affected
vulnerable_code_not_present
Ubuntu 26.04rubygemsNot affected
vulnerable_code_not_present
Ubuntu 25.10jrubyNot affected
vulnerable_code_not_present
Ubuntu 25.10rubygemsNot affected
vulnerable_code_not_present
Ubuntu 24.04jrubyNot affected
vulnerable_code_not_present
Ubuntu 24.04rubygemsNot affected
vulnerable_code_not_present
Ubuntu 22.04rubygemsNot affected
vulnerable_code_not_present
Ubuntu 20.04jrubyNot affected
vulnerable_code_not_present
Ubuntu 18.04jrubyNot affected
vulnerable_code_not_present
Ubuntu 16.04jrubyNot affected
vulnerable_code_not_present
Ubuntu 14.04jrubyFix pendingUBUNTU-CVE-2012-2125
Ubuntu 14.04ruby1.9.1Not affected
vulnerable_code_not_present
Debian 14rubygemsFixed1.8.24-1DEBIAN-CVE-2012-2125
Debian 13rubygemsFixed1.8.24-1DEBIAN-CVE-2012-2125
Debian 12rubygemsFixed1.8.24-1DEBIAN-CVE-2012-2125
Red Hat Enterprise Linux 6rubygemsFixed0:1.3.7-4.el6_4RHSA-2013:1441
RubyGems libraryrubygems-updateFixed1.8.23GHSA-228f-g3h7-3fj3

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.