CVE-2007-5162
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…
Does this matter?
Lower severity and a low EPSS score (1.68%). Track it; it rarely justifies an emergency change on its own.
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.
- CVSS 2.0
- 4.3 MEDIUMAV:N/AC:M/Au:N/C:N/I:P/A:N
- EPSS
- 1.68% probability · 76th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-287
- Affected
- ruby-lang/ruby
- Source
- cve@mitre.org
References
- http://secunia.com/advisories/26985
- http://secunia.com/advisories/27044
- http://secunia.com/advisories/27432
- http://secunia.com/advisories/27576
- http://secunia.com/advisories/27673
- http://secunia.com/advisories/27756
- http://secunia.com/advisories/27764
- http://secunia.com/advisories/27769
- http://secunia.com/advisories/27818
- http://secunia.com/advisories/28645
- http://secunia.com/advisories/29556
- http://securityreason.com/securityalert/3180
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13499Patch
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13500Patch
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13502Patch
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13504Patch
- http://www.debian.org/security/2007/dsa-1410
- http://www.debian.org/security/2007/dsa-1411
- http://www.debian.org/security/2007/dsa-1412
- http://www.isecpartners.com/advisories/2007-006-rubyssl.txt
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:029
- http://www.novell.com/linux/security/advisories/2007_24_sr.html
- http://www.redhat.com/support/errata/RHSA-2007-0961.html
- http://www.redhat.com/support/errata/RHSA-2007-0965.html
- http://www.securityfocus.com/archive/1/480987/100/0/threaded
- http://www.securityfocus.com/archive/1/483577/100/0/threaded
- http://www.securityfocus.com/bid/25847Patch
- http://www.ubuntu.com/usn/usn-596-1
- http://www.vupen.com/english/advisories/2007/3340
- https://bugzilla.redhat.com/show_bug.cgi?id=313791
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.