CVE-2007-5162

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.

Category

4.3
CVSS
Severity: Medium
CVSS 2.0 •
EPSS 1.53% Top 20%
Vendor Advisory ubuntu.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory debian.org Vendor Advisory debian.org Vendor Advisory redhat.com Vendor Advisory novell.com Vendor Advisory mandriva.com Vendor Advisory redhat.com Vendor Advisory debian.org
Affected: n/a n/a
Published at:
Updated at:

References

Link Tags
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13499 patch
http://www.securityfocus.com/bid/25847 vdb entry patch
http://www.securityfocus.com/archive/1/483577/100/0/threaded mailing list
http://secunia.com/advisories/27576 third party advisory
http://secunia.com/advisories/26985 third party advisory
http://www.vupen.com/english/advisories/2007/3340 vdb entry
http://www.ubuntu.com/usn/usn-596-1 vendor advisory
https://exchange.xforce.ibmcloud.com/vulnerabilities/36861 vdb entry
https://bugzilla.redhat.com/show_bug.cgi?id=313791
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13500 patch
https://www.redhat.com/archives/fedora-package-announce/2007-October/msg00391.html vendor advisory
http://secunia.com/advisories/27044 third party advisory
http://www.redhat.com/support/errata/RHSA-2007-0961.html vendor advisory
http://www.redhat.com/support/errata/RHSA-2007-0965.html vendor advisory
http://secunia.com/advisories/27756 third party advisory
http://www.debian.org/security/2007/dsa-1412 vendor advisory
http://www.isecpartners.com/advisories/2007-006-rubyssl.txt
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13502 patch
http://secunia.com/advisories/27673 third party advisory
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10738 vdb entry signature
http://www.debian.org/security/2007/dsa-1410 vendor advisory
http://secunia.com/advisories/27769 third party advisory
https://www.redhat.com/archives/fedora-package-announce/2007-October/msg00087.html vendor advisory
http://www.novell.com/linux/security/advisories/2007_24_sr.html vendor advisory
http://www.mandriva.com/security/advisories?name=MDVSA-2008:029 vendor advisory
http://secunia.com/advisories/29556 third party advisory
http://secunia.com/advisories/27818 third party advisory
http://secunia.com/advisories/27432 third party advisory
http://www.securityfocus.com/archive/1/480987/100/0/threaded mailing list
http://securityreason.com/securityalert/3180 third party advisory
https://www.redhat.com/archives/fedora-package-announce/2007-October/msg00097.html vendor advisory
http://secunia.com/advisories/28645 third party advisory
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13504 patch
http://www.debian.org/security/2007/dsa-1411 vendor advisory
http://secunia.com/advisories/27764 third party advisory

Frequently Asked Questions

What is the severity of CVE-2007-5162?
CVE-2007-5162 has been scored as a medium severity vulnerability.
How to fix CVE-2007-5162?
To fix CVE-2007-5162, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2007-5162 being actively exploited in the wild?
It is possible that CVE-2007-5162 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~2% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.