CVE-2007-5162
The connect method in lib/net/http.rb in the (1) Net::HTTP and (2) Net::HTTPS libraries in Ruby 1...
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.
Exploit likelihood
What each source reports
NVD Score used
4.3
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.
- Record
CVE-2007-5162- CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:P/A:N - Weakness
- CWE-287
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2007-5162- Updated
- 2026-11-02
EUVDEUVD-2007-5143 No score
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.
- Record
EUVD-2007-5143- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-26pc-wx8w-v5vj No score
The connect method in lib/net/http.rb in the (1) Net::HTTP and (2) Net::HTTPS libraries in Ruby 1...
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.
- Record
GHSA-26pc-wx8w-v5vj- Weakness
- CWE-287
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
ruby1.8Debian:4.0 |
before 1.8.5-4etch1, plus listed versions 1.8.5-4 |
1.8.5-4etch1 |
ruby1.8Debian:3.1 |
before 1.8.2-7sarge6, plus listed versions 1.8.2-71.8.2-7sarge11.8.2-7sarge21.8.2-7sarge41.8.2-7sarge5 |
1.8.2-7sarge6 |
libopenssl-rubyDebian:3.1 |
before 0.1.4a-1sarge1, plus listed versions 0.1.4a-1 |
0.1.4a-1sarge1 |
ruby1.9Debian:4.0 |
before 1.9.0+20060609-1etch1, plus listed versions 1.9.0+20060609-1 |
1.9.0+20060609-1etch1 |
irbRed Hat:enterprise_linux:4::as |
before 0:1.8.1-7.EL4.8.1 | 0:1.8.1-7.EL4.8.1 |
rubyRed Hat:enterprise_linux:4::as |
before 0:1.8.1-7.EL4.8.1 | 0:1.8.1-7.EL4.8.1 |
ruby-debuginfoRed Hat:enterprise_linux:4::as |
before 0:1.8.1-7.EL4.8.1 | 0:1.8.1-7.EL4.8.1 |
ruby-develRed Hat:enterprise_linux:4::as |
before 0:1.8.1-7.EL4.8.1 | 0:1.8.1-7.EL4.8.1 |
ruby-docsRed Hat:enterprise_linux:4::as |
before 0:1.8.1-7.EL4.8.1 | 0:1.8.1-7.EL4.8.1 |
ruby-libsRed Hat:enterprise_linux:4::as |
before 0:1.8.1-7.EL4.8.1 | 0:1.8.1-7.EL4.8.1 |
Show 48 moreShow less
| Package | Affected | Fixed |
|---|---|---|
ruby-modeRed Hat:enterprise_linux:4::as |
before 0:1.8.1-7.EL4.8.1 | 0:1.8.1-7.EL4.8.1 |
ruby-tcltkRed Hat:enterprise_linux:4::as |
before 0:1.8.1-7.EL4.8.1 | 0:1.8.1-7.EL4.8.1 |
irbRed Hat:enterprise_linux:4::desktop |
before 0:1.8.1-7.EL4.8.1 | 0:1.8.1-7.EL4.8.1 |
rubyRed Hat:enterprise_linux:4::desktop |
before 0:1.8.1-7.EL4.8.1 | 0:1.8.1-7.EL4.8.1 |
ruby-debuginfoRed Hat:enterprise_linux:4::desktop |
before 0:1.8.1-7.EL4.8.1 | 0:1.8.1-7.EL4.8.1 |
ruby-develRed Hat:enterprise_linux:4::desktop |
before 0:1.8.1-7.EL4.8.1 | 0:1.8.1-7.EL4.8.1 |
ruby-docsRed Hat:enterprise_linux:4::desktop |
before 0:1.8.1-7.EL4.8.1 | 0:1.8.1-7.EL4.8.1 |
ruby-libsRed Hat:enterprise_linux:4::desktop |
before 0:1.8.1-7.EL4.8.1 | 0:1.8.1-7.EL4.8.1 |
ruby-modeRed Hat:enterprise_linux:4::desktop |
before 0:1.8.1-7.EL4.8.1 | 0:1.8.1-7.EL4.8.1 |
ruby-tcltkRed Hat:enterprise_linux:4::desktop |
before 0:1.8.1-7.EL4.8.1 | 0:1.8.1-7.EL4.8.1 |
irbRed Hat:enterprise_linux:4::es |
before 0:1.8.1-7.EL4.8.1 | 0:1.8.1-7.EL4.8.1 |
rubyRed Hat:enterprise_linux:4::es |
before 0:1.8.1-7.EL4.8.1 | 0:1.8.1-7.EL4.8.1 |
ruby-debuginfoRed Hat:enterprise_linux:4::es |
before 0:1.8.1-7.EL4.8.1 | 0:1.8.1-7.EL4.8.1 |
ruby-develRed Hat:enterprise_linux:4::es |
before 0:1.8.1-7.EL4.8.1 | 0:1.8.1-7.EL4.8.1 |
ruby-docsRed Hat:enterprise_linux:4::es |
before 0:1.8.1-7.EL4.8.1 | 0:1.8.1-7.EL4.8.1 |
ruby-libsRed Hat:enterprise_linux:4::es |
before 0:1.8.1-7.EL4.8.1 | 0:1.8.1-7.EL4.8.1 |
ruby-modeRed Hat:enterprise_linux:4::es |
before 0:1.8.1-7.EL4.8.1 | 0:1.8.1-7.EL4.8.1 |
ruby-tcltkRed Hat:enterprise_linux:4::es |
before 0:1.8.1-7.EL4.8.1 | 0:1.8.1-7.EL4.8.1 |
irbRed Hat:enterprise_linux:4::ws |
before 0:1.8.1-7.EL4.8.1 | 0:1.8.1-7.EL4.8.1 |
rubyRed Hat:enterprise_linux:4::ws |
before 0:1.8.1-7.EL4.8.1 | 0:1.8.1-7.EL4.8.1 |
ruby-debuginfoRed Hat:enterprise_linux:4::ws |
before 0:1.8.1-7.EL4.8.1 | 0:1.8.1-7.EL4.8.1 |
ruby-develRed Hat:enterprise_linux:4::ws |
before 0:1.8.1-7.EL4.8.1 | 0:1.8.1-7.EL4.8.1 |
ruby-docsRed Hat:enterprise_linux:4::ws |
before 0:1.8.1-7.EL4.8.1 | 0:1.8.1-7.EL4.8.1 |
ruby-libsRed Hat:enterprise_linux:4::ws |
before 0:1.8.1-7.EL4.8.1 | 0:1.8.1-7.EL4.8.1 |
ruby-modeRed Hat:enterprise_linux:4::ws |
before 0:1.8.1-7.EL4.8.1 | 0:1.8.1-7.EL4.8.1 |
ruby-tcltkRed Hat:enterprise_linux:4::ws |
before 0:1.8.1-7.EL4.8.1 | 0:1.8.1-7.EL4.8.1 |
rubyRed Hat:enterprise_linux:5::client_workstation |
before 0:1.8.5-5.el5_1.1 | 0:1.8.5-5.el5_1.1 |
ruby-debuginfoRed Hat:enterprise_linux:5::client_workstation |
before 0:1.8.5-5.el5_1.1 | 0:1.8.5-5.el5_1.1 |
ruby-develRed Hat:enterprise_linux:5::client_workstation |
before 0:1.8.5-5.el5_1.1 | 0:1.8.5-5.el5_1.1 |
ruby-modeRed Hat:enterprise_linux:5::client_workstation |
before 0:1.8.5-5.el5_1.1 | 0:1.8.5-5.el5_1.1 |
rubyRed Hat:enterprise_linux:5::client |
before 0:1.8.5-5.el5_1.1 | 0:1.8.5-5.el5_1.1 |
ruby-debuginfoRed Hat:enterprise_linux:5::client |
before 0:1.8.5-5.el5_1.1 | 0:1.8.5-5.el5_1.1 |
ruby-docsRed Hat:enterprise_linux:5::client |
before 0:1.8.5-5.el5_1.1 | 0:1.8.5-5.el5_1.1 |
ruby-irbRed Hat:enterprise_linux:5::client |
before 0:1.8.5-5.el5_1.1 | 0:1.8.5-5.el5_1.1 |
ruby-libsRed Hat:enterprise_linux:5::client |
before 0:1.8.5-5.el5_1.1 | 0:1.8.5-5.el5_1.1 |
ruby-rdocRed Hat:enterprise_linux:5::client |
before 0:1.8.5-5.el5_1.1 | 0:1.8.5-5.el5_1.1 |
ruby-riRed Hat:enterprise_linux:5::client |
before 0:1.8.5-5.el5_1.1 | 0:1.8.5-5.el5_1.1 |
ruby-tcltkRed Hat:enterprise_linux:5::client |
before 0:1.8.5-5.el5_1.1 | 0:1.8.5-5.el5_1.1 |
rubyRed Hat:enterprise_linux:5::server |
before 0:1.8.5-5.el5_1.1 | 0:1.8.5-5.el5_1.1 |
ruby-debuginfoRed Hat:enterprise_linux:5::server |
before 0:1.8.5-5.el5_1.1 | 0:1.8.5-5.el5_1.1 |
ruby-develRed Hat:enterprise_linux:5::server |
before 0:1.8.5-5.el5_1.1 | 0:1.8.5-5.el5_1.1 |
ruby-docsRed Hat:enterprise_linux:5::server |
before 0:1.8.5-5.el5_1.1 | 0:1.8.5-5.el5_1.1 |
ruby-irbRed Hat:enterprise_linux:5::server |
before 0:1.8.5-5.el5_1.1 | 0:1.8.5-5.el5_1.1 |
ruby-libsRed Hat:enterprise_linux:5::server |
before 0:1.8.5-5.el5_1.1 | 0:1.8.5-5.el5_1.1 |
ruby-modeRed Hat:enterprise_linux:5::server |
before 0:1.8.5-5.el5_1.1 | 0:1.8.5-5.el5_1.1 |
ruby-rdocRed Hat:enterprise_linux:5::server |
before 0:1.8.5-5.el5_1.1 | 0:1.8.5-5.el5_1.1 |
ruby-riRed Hat:enterprise_linux:5::server |
before 0:1.8.5-5.el5_1.1 | 0:1.8.5-5.el5_1.1 |
ruby-tcltkRed Hat:enterprise_linux:5::server |
before 0:1.8.5-5.el5_1.1 | 0:1.8.5-5.el5_1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| affected, aliases, facts, references, title | GitHub Advisories, OSV | |
| first indexed | CVE List, NVD |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2007-5162 is a medium vulnerability (CVSS 4.3) in Ruby-lang Ruby, published October 1, 2007. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.68%, the 76th percentile. Fixed in ruby1.8 1.8.5-4etch1.
References
svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13499
securityfocus.com/bid/25847
securityfocus.com/archive/1/483577/100/0/threaded
secunia.com/advisories/27576
secunia.com/advisories/26985
vupen.com/english/advisories/2007/3340
Show 48 moreShow less
ubuntu.com/usn/usn-596-1
exchange.xforce.ibmcloud.com/vulnerabilities/36861
bugzilla.redhat.com/show_bug.cgi?id=313791
svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13500
redhat.com/archives/fedora-package-announce/2007-October/msg00391.html
secunia.com/advisories/27044
redhat.com/support/errata/RHSA-2007-0961.html
redhat.com/support/errata/RHSA-2007-0965.html
secunia.com/advisories/27756
debian.org/security/2007/dsa-1412
isecpartners.com/advisories/2007-006-rubyssl.txt
svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13502
secunia.com/advisories/27673
oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10738
debian.org/security/2007/dsa-1410
secunia.com/advisories/27769
redhat.com/archives/fedora-package-announce/2007-October/msg00087.html
novell.com/linux/security/advisories/2007_24_sr.html
mandriva.com/security/advisories?name=MDVSA-2008:029
secunia.com/advisories/29556
secunia.com/advisories/27818
secunia.com/advisories/27432
securityfocus.com/archive/1/480987/100/0/threaded
securityreason.com/securityalert/3180
redhat.com/archives/fedora-package-announce/2007-October/msg00097.html
secunia.com/advisories/28645
svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13504
debian.org/security/2007/dsa-1411
secunia.com/advisories/27764
nvd.nist.gov/vuln/detail/CVE-2007-5162
github.com/advisories/GHSA-26pc-wx8w-v5vj
access.redhat.com/errata/RHSA-2007:0961
redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=218287
bugzilla.redhat.com/show_bug.cgi?id=313691
bugzilla.redhat.com/show_bug.cgi?id=362081
security.access.redhat.com/data/csaf/v2/advisories/2007/rhsa-2007_0961.json
access.redhat.com/security/cve/CVE-2006-6303
cve.org/CVERecord?id=CVE-2006-6303
nvd.nist.gov/vuln/detail/CVE-2006-6303
access.redhat.com/security/cve/CVE-2007-5162
cve.org/CVERecord?id=CVE-2007-5162
access.redhat.com/security/cve/CVE-2007-5770
cve.org/CVERecord?id=CVE-2007-5770
nvd.nist.gov/vuln/detail/CVE-2007-5770
access.redhat.com/errata/RHSA-2007:0965
access.redhat.com/security/updates/classification
security.access.redhat.com/data/csaf/v2/advisories/2007/rhsa-2007_0965.json