CVE-2007-5162

Ruby - Authentication Bypass

Title source: rule

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.

References (35)

... and 15 more

Scores

EPSS 0.0066
EPSS Percentile 70.8%

Classification

CWE
CWE-287
Status draft

Affected Products (2)

ruby-lang/ruby
ruby-lang/ruby

Timeline

Published Oct 01, 2007
Tracked Since Feb 18, 2026