Every CVE Search/ Get API key

CVE-2007-5162

The connect method in lib/net/http.rb in the (1) Net::HTTP and (2) Net::HTTPS libraries in Ruby 1...

4.3 MediumFix available

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

1.68%Down 2.7 points since Feb 4, 2022
90%50%10%1%

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 MediumAV: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

Affected packages
PackageAffectedFixed
ruby1.8
Debian:4.0
before 1.8.5-4etch1, plus listed versions
1.8.5-4
1.8.5-4etch1
ruby1.8
Debian: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-ruby
Debian:3.1
before 0.1.4a-1sarge1, plus listed versions
0.1.4a-1
0.1.4a-1sarge1
ruby1.9
Debian:4.0
before 1.9.0+20060609-1etch1, plus listed versions
1.9.0+20060609-1
1.9.0+20060609-1etch1
irb
Red Hat:enterprise_linux:4::as
before 0:1.8.1-7.EL4.8.1
0:1.8.1-7.EL4.8.1
ruby
Red Hat:enterprise_linux:4::as
before 0:1.8.1-7.EL4.8.1
0:1.8.1-7.EL4.8.1
ruby-debuginfo
Red Hat:enterprise_linux:4::as
before 0:1.8.1-7.EL4.8.1
0:1.8.1-7.EL4.8.1
ruby-devel
Red Hat:enterprise_linux:4::as
before 0:1.8.1-7.EL4.8.1
0:1.8.1-7.EL4.8.1
ruby-docs
Red Hat:enterprise_linux:4::as
before 0:1.8.1-7.EL4.8.1
0:1.8.1-7.EL4.8.1
ruby-libs
Red 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
Affected packages
PackageAffectedFixed
ruby-mode
Red Hat:enterprise_linux:4::as
before 0:1.8.1-7.EL4.8.1
0:1.8.1-7.EL4.8.1
ruby-tcltk
Red Hat:enterprise_linux:4::as
before 0:1.8.1-7.EL4.8.1
0:1.8.1-7.EL4.8.1
irb
Red Hat:enterprise_linux:4::desktop
before 0:1.8.1-7.EL4.8.1
0:1.8.1-7.EL4.8.1
ruby
Red Hat:enterprise_linux:4::desktop
before 0:1.8.1-7.EL4.8.1
0:1.8.1-7.EL4.8.1
ruby-debuginfo
Red Hat:enterprise_linux:4::desktop
before 0:1.8.1-7.EL4.8.1
0:1.8.1-7.EL4.8.1
ruby-devel
Red Hat:enterprise_linux:4::desktop
before 0:1.8.1-7.EL4.8.1
0:1.8.1-7.EL4.8.1
ruby-docs
Red Hat:enterprise_linux:4::desktop
before 0:1.8.1-7.EL4.8.1
0:1.8.1-7.EL4.8.1
ruby-libs
Red Hat:enterprise_linux:4::desktop
before 0:1.8.1-7.EL4.8.1
0:1.8.1-7.EL4.8.1
ruby-mode
Red Hat:enterprise_linux:4::desktop
before 0:1.8.1-7.EL4.8.1
0:1.8.1-7.EL4.8.1
ruby-tcltk
Red Hat:enterprise_linux:4::desktop
before 0:1.8.1-7.EL4.8.1
0:1.8.1-7.EL4.8.1
irb
Red Hat:enterprise_linux:4::es
before 0:1.8.1-7.EL4.8.1
0:1.8.1-7.EL4.8.1
ruby
Red Hat:enterprise_linux:4::es
before 0:1.8.1-7.EL4.8.1
0:1.8.1-7.EL4.8.1
ruby-debuginfo
Red Hat:enterprise_linux:4::es
before 0:1.8.1-7.EL4.8.1
0:1.8.1-7.EL4.8.1
ruby-devel
Red Hat:enterprise_linux:4::es
before 0:1.8.1-7.EL4.8.1
0:1.8.1-7.EL4.8.1
ruby-docs
Red Hat:enterprise_linux:4::es
before 0:1.8.1-7.EL4.8.1
0:1.8.1-7.EL4.8.1
ruby-libs
Red Hat:enterprise_linux:4::es
before 0:1.8.1-7.EL4.8.1
0:1.8.1-7.EL4.8.1
ruby-mode
Red Hat:enterprise_linux:4::es
before 0:1.8.1-7.EL4.8.1
0:1.8.1-7.EL4.8.1
ruby-tcltk
Red Hat:enterprise_linux:4::es
before 0:1.8.1-7.EL4.8.1
0:1.8.1-7.EL4.8.1
irb
Red Hat:enterprise_linux:4::ws
before 0:1.8.1-7.EL4.8.1
0:1.8.1-7.EL4.8.1
ruby
Red Hat:enterprise_linux:4::ws
before 0:1.8.1-7.EL4.8.1
0:1.8.1-7.EL4.8.1
ruby-debuginfo
Red Hat:enterprise_linux:4::ws
before 0:1.8.1-7.EL4.8.1
0:1.8.1-7.EL4.8.1
ruby-devel
Red Hat:enterprise_linux:4::ws
before 0:1.8.1-7.EL4.8.1
0:1.8.1-7.EL4.8.1
ruby-docs
Red Hat:enterprise_linux:4::ws
before 0:1.8.1-7.EL4.8.1
0:1.8.1-7.EL4.8.1
ruby-libs
Red Hat:enterprise_linux:4::ws
before 0:1.8.1-7.EL4.8.1
0:1.8.1-7.EL4.8.1
ruby-mode
Red Hat:enterprise_linux:4::ws
before 0:1.8.1-7.EL4.8.1
0:1.8.1-7.EL4.8.1
ruby-tcltk
Red Hat:enterprise_linux:4::ws
before 0:1.8.1-7.EL4.8.1
0:1.8.1-7.EL4.8.1
ruby
Red Hat:enterprise_linux:5::client_workstation
before 0:1.8.5-5.el5_1.1
0:1.8.5-5.el5_1.1
ruby-debuginfo
Red Hat:enterprise_linux:5::client_workstation
before 0:1.8.5-5.el5_1.1
0:1.8.5-5.el5_1.1
ruby-devel
Red Hat:enterprise_linux:5::client_workstation
before 0:1.8.5-5.el5_1.1
0:1.8.5-5.el5_1.1
ruby-mode
Red Hat:enterprise_linux:5::client_workstation
before 0:1.8.5-5.el5_1.1
0:1.8.5-5.el5_1.1
ruby
Red Hat:enterprise_linux:5::client
before 0:1.8.5-5.el5_1.1
0:1.8.5-5.el5_1.1
ruby-debuginfo
Red Hat:enterprise_linux:5::client
before 0:1.8.5-5.el5_1.1
0:1.8.5-5.el5_1.1
ruby-docs
Red Hat:enterprise_linux:5::client
before 0:1.8.5-5.el5_1.1
0:1.8.5-5.el5_1.1
ruby-irb
Red Hat:enterprise_linux:5::client
before 0:1.8.5-5.el5_1.1
0:1.8.5-5.el5_1.1
ruby-libs
Red Hat:enterprise_linux:5::client
before 0:1.8.5-5.el5_1.1
0:1.8.5-5.el5_1.1
ruby-rdoc
Red Hat:enterprise_linux:5::client
before 0:1.8.5-5.el5_1.1
0:1.8.5-5.el5_1.1
ruby-ri
Red Hat:enterprise_linux:5::client
before 0:1.8.5-5.el5_1.1
0:1.8.5-5.el5_1.1
ruby-tcltk
Red Hat:enterprise_linux:5::client
before 0:1.8.5-5.el5_1.1
0:1.8.5-5.el5_1.1
ruby
Red Hat:enterprise_linux:5::server
before 0:1.8.5-5.el5_1.1
0:1.8.5-5.el5_1.1
ruby-debuginfo
Red Hat:enterprise_linux:5::server
before 0:1.8.5-5.el5_1.1
0:1.8.5-5.el5_1.1
ruby-devel
Red Hat:enterprise_linux:5::server
before 0:1.8.5-5.el5_1.1
0:1.8.5-5.el5_1.1
ruby-docs
Red Hat:enterprise_linux:5::server
before 0:1.8.5-5.el5_1.1
0:1.8.5-5.el5_1.1
ruby-irb
Red Hat:enterprise_linux:5::server
before 0:1.8.5-5.el5_1.1
0:1.8.5-5.el5_1.1
ruby-libs
Red Hat:enterprise_linux:5::server
before 0:1.8.5-5.el5_1.1
0:1.8.5-5.el5_1.1
ruby-mode
Red Hat:enterprise_linux:5::server
before 0:1.8.5-5.el5_1.1
0:1.8.5-5.el5_1.1
ruby-rdoc
Red Hat:enterprise_linux:5::server
before 0:1.8.5-5.el5_1.1
0:1.8.5-5.el5_1.1
ruby-ri
Red Hat:enterprise_linux:5::server
before 0:1.8.5-5.el5_1.1
0:1.8.5-5.el5_1.1
ruby-tcltk
Red Hat:enterprise_linux:5::server
before 0:1.8.5-5.el5_1.1
0:1.8.5-5.el5_1.1

History

History
RecordedChangedSources
aliasesEUVD
affected, aliases, facts, references, titleGitHub Advisories, OSV
first indexedCVE 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

Show 48 moreShow less
MoveEnter Open