CVE-2007-5162
published 2007-10-01CVE-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…
PriorityP416medium4.3CVSS 2.0
AVNACMAuNCNIPAN
EPSS
1.68%
74.1th percentile
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.
Affected
2 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| ruby-lang | ruby | — | — |
| ruby-lang | ruby | — | — |
CVSS provenance
nvdv2.04.3MEDIUMAV:N/AC:M/Au:N/C:N/I:P/A:N
vendor_redhat4.3MEDIUM
vendor_ubuntu4.3MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-26pc-wx8w-v5vj: The connect method in lib/net/http
ghsa_unreviewed·2022-05-01
CVE-2007-5162 [MEDIUM] CWE-287 GHSA-26pc-wx8w-v5vj: The connect method in lib/net/http
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.
GHSA
GHSA-mf83-c25g-48r6: The (1) Net::ftptls, (2) Net::telnets, (3) Net::imap, (4) Net::pop, and (5) Net::smtp libraries in Ruby 1
ghsa_unreviewed·2022-05-01·CVSS 4.3
CVE-2007-5770 [MEDIUM] CWE-287 GHSA-mf83-c25g-48r6: The (1) Net::ftptls, (2) Net::telnets, (3) Net::imap, (4) Net::pop, and (5) Net::smtp libraries in Ruby 1
The (1) Net::ftptls, (2) Net::telnets, (3) Net::imap, (4) Net::pop, and (5) Net::smtp libraries in Ruby 1.8.5 and 1.8.6 do not verify that the commonName (CN) field in a server certificate matches the domain name in a request sent over SSL, which makes it easier for remote attackers to intercept SSL transmissions via a man-in-the-middle attack or spoofed web site, different components than CVE-2007-5162.
Ubuntu
Ruby vulnerabilities
vendor_ubuntu·2008-03-26·CVSS 4.3
CVE-2007-5770 [MEDIUM] Ruby vulnerabilities
Title: Ruby vulnerabilities
Summary: Ruby vulnerabilities
Chris Clark discovered that Ruby's HTTPS module did not check for
commonName mismatches early enough during SSL negotiation. If a remote
attacker were able to perform machine-in-the-middle attacks, this flaw could
be exploited to view sensitive information in HTTPS requests coming from
Ruby applications. (CVE-2007-5162)
It was discovered that Ruby's FTPTLS, telnets, and IMAPS modules
did not check the commonName when performing SSL certificate checks.
If a remote attacker were able to perform machine-in-the-middle attacks,
this flaw could be exploited to eavesdrop on encrypted communications
from Ruby applications using these protocols. (CVE-2007-5770)
Instructions: In general, a standard system upgrade is sufficient to effect t
Red Hat
net:: * modules
vendor_redhat·2007-10-08·CVSS 4.3
CVE-2007-5770 [MEDIUM] net:: * modules
net:: * modules
The (1) Net::ftptls, (2) Net::telnets, (3) Net::imap, (4) Net::pop, and (5) Net::smtp libraries in Ruby 1.8.5 and 1.8.6 do not verify that the commonName (CN) field in a server certificate matches the domain name in a request sent over SSL, which makes it easier for remote attackers to intercept SSL transmissions via a man-in-the-middle attack or spoofed web site, different components than CVE-2007-5162.
Red Hat
Net: HTTP insufficient verification of SSL certificate
vendor_redhat·2007-09-27·CVSS 4.3
CVE-2007-5162 [MEDIUM] Net: HTTP insufficient verification of SSL certificate
Net: HTTP insufficient verification of SSL certificate
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.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2007-5770 ruby insufficient verification of SSL certificate in various net::* modules
bugzilla·2007-11-01·CVSS 4.3
CVE-2007-5770 [MEDIUM] CVE-2007-5770 ruby insufficient verification of SSL certificate in various net::* modules
CVE-2007-5770 ruby insufficient verification of SSL certificate in various net::* modules
A flaw was discovered in a way various ruby net::* modules verify commonName
(CN) attribute of SSL certificate provided by server against requested hostname,
which makes it easier for remote attackers to intercept SSL transmissions via a
man-in-the-middle attack or spoofed site.
Issue was originally reported for net::http(s) module and was assigned CVE id
CVE-2007-5162. However, similar issue also affects other modules: net::ftptls,
net::telnets, net::imap and CVS versions of net::pop and net::smtp.
Upstream SVN commit:
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13656
Discussion:
This issue was addressed in:
Red Hat Enterprise Linux:
http://rhn.redhat.com/errata/RHSA-2007-0965
Bugzilla
CVE-2007-5162 ruby Net:HTTP insufficient verification of SSL certificate [FC6]
bugzilla·2007-10-01·CVSS 4.3
CVE-2007-5162 [MEDIUM] CVE-2007-5162 ruby Net:HTTP insufficient verification of SSL certificate [FC6]
CVE-2007-5162 ruby Net:HTTP insufficient verification of SSL certificate [FC6]
FC6 tracking bug: see blocks bug list for full details of the security issue(s).
[bug automatically created by: add-tracking-bugs]
Discussion:
Fixed in 1.8.5.113-1.fc6
Bugzilla
CVE-2007-5162 ruby Net:HTTP insufficient verification of SSL certificate
bugzilla·2007-10-01·CVSS 4.3
CVE-2007-5162 [MEDIUM] CVE-2007-5162 ruby Net:HTTP insufficient verification of SSL certificate
CVE-2007-5162 ruby Net:HTTP insufficient verification of SSL certificate
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 ad
Bugzilla
CVE-2007-5162 ruby Net:HTTP insufficient verification of SSL certificate [F7]
bugzilla·2007-10-01·CVSS 4.3
CVE-2007-5162 [MEDIUM] CVE-2007-5162 ruby Net:HTTP insufficient verification of SSL certificate [F7]
CVE-2007-5162 ruby Net:HTTP insufficient verification of SSL certificate [F7]
F7 tracking bug: see blocks bug list for full details of the security issue(s).
[bug automatically created by: add-tracking-bugs]
Discussion:
Fixed in 1.8.6.110-1.fc7.
---
ruby-1.8.6.110-1.fc7 has been pushed to the Fedora 7 stable repository. If problems still persist, please make note of it in this bug report.
http://secunia.com/advisories/26985http://secunia.com/advisories/27044http://secunia.com/advisories/27432http://secunia.com/advisories/27576http://secunia.com/advisories/27673http://secunia.com/advisories/27756http://secunia.com/advisories/27764http://secunia.com/advisories/27769http://secunia.com/advisories/27818http://secunia.com/advisories/28645http://secunia.com/advisories/29556http://securityreason.com/securityalert/3180http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13499http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13500http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13502http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13504http://www.debian.org/security/2007/dsa-1410http://www.debian.org/security/2007/dsa-1411http://www.debian.org/security/2007/dsa-1412http://www.isecpartners.com/advisories/2007-006-rubyssl.txthttp://www.mandriva.com/security/advisories?name=MDVSA-2008:029http://www.novell.com/linux/security/advisories/2007_24_sr.htmlhttp://www.redhat.com/support/errata/RHSA-2007-0961.htmlhttp://www.redhat.com/support/errata/RHSA-2007-0965.htmlhttp://www.securityfocus.com/archive/1/480987/100/0/threadedhttp://www.securityfocus.com/archive/1/483577/100/0/threadedhttp://www.securityfocus.com/bid/25847http://www.ubuntu.com/usn/usn-596-1http://www.vupen.com/english/advisories/2007/3340https://bugzilla.redhat.com/show_bug.cgi?id=313791https://exchange.xforce.ibmcloud.com/vulnerabilities/36861https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10738https://www.redhat.com/archives/fedora-package-announce/2007-October/msg00087.htmlhttps://www.redhat.com/archives/fedora-package-announce/2007-October/msg00097.htmlhttps://www.redhat.com/archives/fedora-package-announce/2007-October/msg00391.htmlhttp://secunia.com/advisories/26985http://secunia.com/advisories/27044http://secunia.com/advisories/27432http://secunia.com/advisories/27576http://secunia.com/advisories/27673http://secunia.com/advisories/27756http://secunia.com/advisories/27764http://secunia.com/advisories/27769http://secunia.com/advisories/27818http://secunia.com/advisories/28645http://secunia.com/advisories/29556http://securityreason.com/securityalert/3180http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13499http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13500http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13502http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13504http://www.debian.org/security/2007/dsa-1410http://www.debian.org/security/2007/dsa-1411http://www.debian.org/security/2007/dsa-1412http://www.isecpartners.com/advisories/2007-006-rubyssl.txthttp://www.mandriva.com/security/advisories?name=MDVSA-2008:029http://www.novell.com/linux/security/advisories/2007_24_sr.htmlhttp://www.redhat.com/support/errata/RHSA-2007-0961.htmlhttp://www.redhat.com/support/errata/RHSA-2007-0965.htmlhttp://www.securityfocus.com/archive/1/480987/100/0/threadedhttp://www.securityfocus.com/archive/1/483577/100/0/threadedhttp://www.securityfocus.com/bid/25847http://www.ubuntu.com/usn/usn-596-1http://www.vupen.com/english/advisories/2007/3340https://bugzilla.redhat.com/show_bug.cgi?id=313791https://exchange.xforce.ibmcloud.com/vulnerabilities/36861https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10738https://www.redhat.com/archives/fedora-package-announce/2007-October/msg00087.htmlhttps://www.redhat.com/archives/fedora-package-announce/2007-October/msg00097.htmlhttps://www.redhat.com/archives/fedora-package-announce/2007-October/msg00391.html
2007-10-01
Published