{"id":"CVE-2007-5162","sourceIdentifier":"cve@mitre.org","published":"2007-10-01T05:17:00.000","lastModified":"2026-06-16T22:45:34.100","vulnStatus":"Modified","cveTags":[],"descriptions":[{"lang":"en","value":"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."},{"lang":"es","value":"El método connect en lib/net/http.rb en las bibliotecas (1) Net::HTTP y (2) Net::HTTPS de Ruby 1.8.5 y 1.8.6 no verifica que el campo commonName (CN) en un certificado de servidor concuerde con el nombre de dominio de una petición HTTPS, lo cual facilita a atacantes remotos interceptar transmisiones SSL mediante un ataque de \"hombre en medio\" (man-in-the-middle) o sitio web falsificado.\r\n"}],"affected":[{"source":"cve@mitre.org","affectedData":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}]}],"metrics":{"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:N/I:P/A:N","baseScore":4.3,"accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE"},"baseSeverity":"MEDIUM","exploitabilityScore":8.6,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}]},"weaknesses":[{"source":"nvd@nist.gov","type":"Primary","description":[{"lang":"en","value":"CWE-287"}]}],"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:ruby-lang:ruby:1.8.5:*:*:*:*:*:*:*","matchCriteriaId":"C80BDE13-9CBB-4A5F-9BF4-BEB907CED271"},{"vulnerable":true,"criteria":"cpe:2.3:a:ruby-lang:ruby:1.8.6:*:*:*:*:*:*:*","matchCriteriaId":"876B2575-4F81-4A70-9A88-9BEE44649626"}]}]}],"references":[{"url":"http://secunia.com/advisories/26985","source":"cve@mitre.org"},{"url":"http://secunia.com/advisories/27044","source":"cve@mitre.org"},{"url":"http://secunia.com/advisories/27432","source":"cve@mitre.org"},{"url":"http://secunia.com/advisories/27576","source":"cve@mitre.org"},{"url":"http://secunia.com/advisories/27673","source":"cve@mitre.org"},{"url":"http://secunia.com/advisories/27756","source":"cve@mitre.org"},{"url":"http://secunia.com/advisories/27764","source":"cve@mitre.org"},{"url":"http://secunia.com/advisories/27769","source":"cve@mitre.org"},{"url":"http://secunia.com/advisories/27818","source":"cve@mitre.org"},{"url":"http://secunia.com/advisories/28645","source":"cve@mitre.org"},{"url":"http://secunia.com/advisories/29556","source":"cve@mitre.org"},{"url":"http://securityreason.com/securityalert/3180","source":"cve@mitre.org"},{"url":"http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13499","source":"cve@mitre.org","tags":["Patch"]},{"url":"http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13500","source":"cve@mitre.org","tags":["Patch"]},{"url":"http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13502","source":"cve@mitre.org","tags":["Patch"]},{"url":"http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13504","source":"cve@mitre.org","tags":["Patch"]},{"url":"http://www.debian.org/security/2007/dsa-1410","source":"cve@mitre.org"},{"url":"http://www.debian.org/security/2007/dsa-1411","source":"cve@mitre.org"},{"url":"http://www.debian.org/security/2007/dsa-1412","source":"cve@mitre.org"},{"url":"http://www.isecpartners.com/advisories/2007-006-rubyssl.txt","source":"cve@mitre.org"},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2008:029","source":"cve@mitre.org"},{"url":"http://www.novell.com/linux/security/advisories/2007_24_sr.html","source":"cve@mitre.org"},{"url":"http://www.redhat.com/support/errata/RHSA-2007-0961.html","source":"cve@mitre.org"},{"url":"http://www.redhat.com/support/errata/RHSA-2007-0965.html","source":"cve@mitre.org"},{"url":"http://www.securityfocus.com/archive/1/480987/100/0/threaded","source":"cve@mitre.org"},{"url":"http://www.securityfocus.com/archive/1/483577/100/0/threaded","source":"cve@mitre.org"},{"url":"http://www.securityfocus.com/bid/25847","source":"cve@mitre.org","tags":["Patch"]},{"url":"http://www.ubuntu.com/usn/usn-596-1","source":"cve@mitre.org"},{"url":"http://www.vupen.com/english/advisories/2007/3340","source":"cve@mitre.org"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=313791","source":"cve@mitre.org"},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/36861","source":"cve@mitre.org"},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10738","source":"cve@mitre.org"},{"url":"https://www.redhat.com/archives/fedora-package-announce/2007-October/msg00087.html","source":"cve@mitre.org"},{"url":"https://www.redhat.com/archives/fedora-package-announce/2007-October/msg00097.html","source":"cve@mitre.org"},{"url":"https://www.redhat.com/archives/fedora-package-announce/2007-October/msg00391.html","source":"cve@mitre.org"},{"url":"http://secunia.com/advisories/26985","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://secunia.com/advisories/27044","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://secunia.com/advisories/27432","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://secunia.com/advisories/27576","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://secunia.com/advisories/27673","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://secunia.com/advisories/27756","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://secunia.com/advisories/27764","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://secunia.com/advisories/27769","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://secunia.com/advisories/27818","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://secunia.com/advisories/28645","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://secunia.com/advisories/29556","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://securityreason.com/securityalert/3180","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13499","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"]},{"url":"http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13500","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"]},{"url":"http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13502","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"]},{"url":"http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13504","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"]},{"url":"http://www.debian.org/security/2007/dsa-1410","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.debian.org/security/2007/dsa-1411","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.debian.org/security/2007/dsa-1412","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.isecpartners.com/advisories/2007-006-rubyssl.txt","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2008:029","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.novell.com/linux/security/advisories/2007_24_sr.html","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.redhat.com/support/errata/RHSA-2007-0961.html","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.redhat.com/support/errata/RHSA-2007-0965.html","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securityfocus.com/archive/1/480987/100/0/threaded","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securityfocus.com/archive/1/483577/100/0/threaded","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securityfocus.com/bid/25847","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"]},{"url":"http://www.ubuntu.com/usn/usn-596-1","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.vupen.com/english/advisories/2007/3340","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=313791","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/36861","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10738","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.redhat.com/archives/fedora-package-announce/2007-October/msg00087.html","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.redhat.com/archives/fedora-package-announce/2007-October/msg00097.html","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.redhat.com/archives/fedora-package-announce/2007-October/msg00391.html","source":"af854a3a-2127-422b-91ae-364da2661108"}]}