CVE-2007-5162: Medium severity ruby-lang Ruby vulnerability

Published Sep 27, 2007
·
Updated

Common Vulnerabilities and Exposures assigned an identifier CVE-2007-5162 to the following vulnerability:

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:

http://www.isecpartners.com/advisories/2007-006-rubyssl.txt http://www.securityfocus.com/bid/25847 http://www.securityfocus.com/archive/1/480987

Patch applied to trunk:

http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13499 (original advisory links to other commits in other svn branches)

Affected Software

3 affected componentsFixes available
redhat/ruby<0:1.8.5-5.el5_1.1
0:1.8.5-5.el5_1.1
ruby-lang Ruby=1.8.5
ruby-lang Ruby=1.8.6

Event History

Sep 27, 2007
CVE Published
via Red Hat·12:00 AM
Oct 1, 2007
CVE Published
via MITRE·04:00 AM
Data Sourced
via MITRE·04:00 AM
Description
Data Sourced
via Red Hat·11:40 AM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2007-5162?

CVE-2007-5162 has a medium severity rating due to its potential to allow remote attackers to intercept SSL transmissions.

2

How do I fix CVE-2007-5162?

To fix CVE-2007-5162, update Ruby to version 1.8.7 or later, which includes proper certificate validation.

3

What versions of Ruby are affected by CVE-2007-5162?

CVE-2007-5162 affects Ruby versions 1.8.5 and 1.8.6.

4

What specific method in Ruby is vulnerable according to CVE-2007-5162?

The connect method in the Net::HTTP and Net::HTTPS libraries is vulnerable according to CVE-2007-5162.

5

Is CVE-2007-5162 a critical vulnerability?

CVE-2007-5162 is not classified as critical, but it poses security risks that should be addressed promptly.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203