CVE-2007-5162

Medium

Description

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.

SeverityMedium
CVSS4.3
Exploit probability—
ProductRuby
PublishedOct 1, 2007
First seenOct 1, 2007

How to fix

Affected products

ProductAffected versionsFixed in
ruby-lang ruby1.8.5, 1.8.6—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.