Skip to content
OpenAdvisories
Unscored CVE-2007-5162 EUVD-2007-5143GHSA-26pc-wx8w-v5vj

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 co…

Published Oct 1, 2007 · Updated Aug 7, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 4.0 ruby1.8 1.8.5-4etch1 DSA-1410-1
Debian 4.0 ruby1.9 1.9.0+20060609-1etch1 DSA-1412-1
Debian 3.1 libopenssl-ruby 0.1.4a-1sarge1 DSA-1411-1
Debian 3.1 ruby1.8 1.8.2-7sarge6 DSA-1410-1
ReleasePackageFixed inAdvisory
RHEL 5 ruby +8 1.8.5-5.el5_1.1 RHSA-2007:0965
RHEL 4 irb +6 1.8.1-7.EL4.8.1 RHSA-2007:0961

Advisories 5

References