Vulnerabilities · 2007 · Ruby-lang
CVE-2007-5162
Ruby-lang Ruby vulnerability
The connect method in lib/net/http.rb in the (1) Net::HTTP and (2) Net::HTTPS libraries in Ruby 1.8.5 and 1.8.6 does not verify that the commonName (CN) field in a server certificate matches the domain name in an HTTPS request, which makes it easier for remote attackers to intercept SSL transmissions via a man-in-the-middle attack or spoofed web site.
Affected products
Ruby. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Ruby-lang Ruby runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13499 · Patch
- svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13500 · Patch
- svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13502 · Patch
- svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13504 · Patch
- www.securityfocus.com/bid/25847 · Patch
- secunia.com/advisories/26985
- secunia.com/advisories/27044
- secunia.com/advisories/27432
- nvd.nist.gov/vuln/detail/CVE-2007-5162
- cve.org/CVERecord?id=CVE-2007-5162
More vulnerabilities in Ruby-lang products
CVE-2026-46727CVE-2025-58767CVE-2025-43857CVE-2025-27788CVE-2025-27221CVE-2025-27220CVE-2025-27219CVE-2025-6442All 115
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.