Skip to content
Fencer Vulns
medium 4.3

CVE-2007-5162 json

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 co…

published 2007-10-01 19 y ago modified 2026-06-16 4 mo ago also EUVD-2007-5143

cvss
4.3
version 2.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.7%
EPSS 1.7% chance of exploitation in 30 days, percentile 77%
public exploits
0
none known

Summary

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.

Patch / fix

  • ruby RHEL 5 1.8.5-5.el5_1.1
  • ruby-ri RHEL 5 1.8.5-5.el5_1.1
  • ruby-irb RHEL 5 1.8.5-5.el5_1.1
  • ruby-libs RHEL 5 1.8.5-5.el5_1.1
  • ruby-mode RHEL 5 1.8.5-5.el5_1.1
  • ruby-rdoc RHEL 5 1.8.5-5.el5_1.1
  • ruby-tcltk RHEL 5 1.8.5-5.el5_1.1
  • ruby RHEL 4 1.8.1-7.EL4.8.1

red hat advisories RHSA-2007:0965RHSA-2007:0961

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2007-5162 updated

Net: HTTP insufficient verification of SSL certificate

  • Red Hat Enterprise Linux (v. 5 server) ruby 1.8.5-5.el5_1.1, ruby-ri 1.8.5-5.el5_1.1, ruby-irb 1.8.5-5.el5_1.1, ruby-libs 1.8.5-5.el5_1.1, ruby-mode 1.8.5-5.el5_1.1, ruby-rdoc 1.8.5-5.el5_1.1, +1 more
    fixed: vendor fix RHSA-2007:0965
  • Red Hat Enterprise Linux AS version 4 irb 1.8.1-7.EL4.8.1, ruby 1.8.1-7.EL4.8.1, ruby-libs 1.8.1-7.EL4.8.1, ruby-mode 1.8.1-7.EL4.8.1, ruby-tcltk 1.8.1-7.EL4.8.1
    fixed: vendor fix RHSA-2007:0961
  • Red Hat Enterprise Linux Desktop (v. 5 client) ruby 1.8.5-5.el5_1.1, ruby-ri 1.8.5-5.el5_1.1, ruby-irb 1.8.5-5.el5_1.1, ruby-libs 1.8.5-5.el5_1.1, ruby-mode 1.8.5-5.el5_1.1, ruby-rdoc 1.8.5-5.el5_1.1, +1 more
    fixed: vendor fix RHSA-2007:0965
  • Red Hat Enterprise Linux Desktop version 4 irb 1.8.1-7.EL4.8.1, ruby 1.8.1-7.EL4.8.1, ruby-libs 1.8.1-7.EL4.8.1, ruby-mode 1.8.1-7.EL4.8.1, ruby-tcltk 1.8.1-7.EL4.8.1
    fixed: vendor fix RHSA-2007:0961
  • Red Hat Enterprise Linux Desktop Workstation (v. 5 client) ruby 1.8.5-5.el5_1.1, ruby-ri 1.8.5-5.el5_1.1, ruby-irb 1.8.5-5.el5_1.1, ruby-libs 1.8.5-5.el5_1.1, ruby-mode 1.8.5-5.el5_1.1, ruby-rdoc 1.8.5-5.el5_1.1, +1 more
    fixed: vendor fix RHSA-2007:0965
  • Red Hat Enterprise Linux ES version 4 irb 1.8.1-7.EL4.8.1, ruby 1.8.1-7.EL4.8.1, ruby-libs 1.8.1-7.EL4.8.1, ruby-mode 1.8.1-7.EL4.8.1, ruby-tcltk 1.8.1-7.EL4.8.1 Red Hat Enterprise Linux WS version 4 irb 1.8.1-7.EL4.8.1, ruby 1.8.1-7.EL4.8.1, ruby-libs 1.8.1-7.EL4.8.1, ruby-mode 1.8.1-7.EL4.8.1, ruby-tcltk 1.8.1-7.EL4.8.1
    fixed: vendor fix RHSA-2007:0961

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

1.68% chance of exploitation in the next 30 days, higher than 77% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 2.0 4.3 AV:N/AC:M/Au:N/C:N/I:P/A:N

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.