Live threats

All CVEs / Ruby-lang

CVE-2007-5162Ruby-lang Ruby

Medium 4.3 No auth needed

Priority
41
CVSS 2.0
4.3
EPSS
1.7%
probability of exploitation in 30 days · percentile 77
Auth required
No
Published
Oct 1, 2007
Updated
Jun 16, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-287
Vector
AV:N/AC:M/Au:N/C:N/I:P/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Ruby.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
ruby-langruby1.8.5
ruby-langruby1.8.6

Official sources

References

Links published by the sources. Open them with care.