CVEvulnerability

CVE-2007-5162

4.3 MEDIUM Published 2007-10-01 Modified 2026-06-16 Official page ↗
Status
Modified
Published
2007-10-01
Last modified
2026-06-16
Assigner
[email protected]
CVSS 2.0 ([email protected])
4.3 MEDIUM — AV:N/AC:M/Au:N/C:N/I:P/A:N
Weaknesses
CWE-287

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.

Affected configurations

• ruby-lang ruby 1.8.5 • ruby-lang ruby 1.8.6

Related

Weakness · CWE (1)

  • CWE-287 Improper Authentication weakness

References