Read the docs
TI-2007-04973 Aliases CVE-2007-5162GHSA-26pc-wx8w-v5vj

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

Priority LOW 23CWE-287Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
— Not recorded in CVSS 2.0
Attack complexity
Medium
Impact type
Security bypass
Confidentiality · integrity · availability
None · Partial · None
Fix status
Fixed

Attack profile from CVSS 2.0 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-287.

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.

Why it matters now

EPSS 0.01681 77th percentileScored 2026-11-07
Fix Fixed Red Hat: 2 advisories

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
——all versions—No fix listedCNA
  • — Vendor— Affected all versions Fixed in — No fix listed CNA

CPE configurations NVD · 2

CPEVersionsRoleVendor
cpe:2.3:a:ruby-lang:ruby:1.8.5:*:*:*:*:*:*:*1.8.5Vulnerableruby
cpe:2.3:a:ruby-lang:ruby:1.8.6:*:*:*:*:*:*:*1.8.6Vulnerableruby
  • cpe:2.3:a:ruby-lang:ruby:1.8.5:*:*:*:*:*:*:* Versions 1.8.5 Vulnerable ·ruby
  • cpe:2.3:a:ruby-lang:ruby:1.8.6:*:*:*:*:*:*:* Versions 1.8.6 Vulnerable ·ruby

Remediation

Red Hat 2 advisories

  • RHSA-2007:0961 Released 2007-11-13 · Red Hat rating Moderate
    ruby security update
    • Red Hat Enterprise Linux AS version 4 irb-1.8.1-7.EL4.8.1, irb-1.8.1-7.EL4.8.1.i386, irb-1.8.1-7.EL4.8.1.ia64 +25
    • Red Hat Enterprise Linux Desktop version 4 irb-1.8.1-7.EL4.8.1, irb-1.8.1-7.EL4.8.1.i386, ruby-1.8.1-7.EL4.8.1 +11
    • Red Hat Enterprise Linux ES version 4 irb-1.8.1-7.EL4.8.1, irb-1.8.1-7.EL4.8.1.i386, irb-1.8.1-7.EL4.8.1.ia64 +18
    • Red Hat Enterprise Linux WS version 4 irb-1.8.1-7.EL4.8.1, irb-1.8.1-7.EL4.8.1.i386, irb-1.8.1-7.EL4.8.1.ia64 +18
  • RHSA-2007:0965 Released 2007-11-13 · Red Hat rating Moderate
    ruby security update
    • Red Hat Enterprise Linux (v. 5 server) ruby-1.8.5-5.el5_1.1, ruby-1.8.5-5.el5_1.1.i386, ruby-1.8.5-5.el5_1.1.ia64 +33
    • Red Hat Enterprise Linux Desktop (v. 5 client) ruby-1.8.5-5.el5_1.1, ruby-1.8.5-5.el5_1.1.i386, ruby-docs-1.8.5-5.el5_1.1 +11
    • Red Hat Enterprise Linux Desktop Workstation (v. 5 client) ruby-1.8.5-5.el5_1.1, ruby-devel-1.8.5-5.el5_1.1, ruby-devel-1.8.5-5.el5_1.1.i386 +2

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux (v. 5 server)Fixed RHSA-2007:0965
Red Hat Enterprise Linux AS version 4Fixed RHSA-2007:0961
Red Hat Enterprise Linux Desktop (v. 5 client)Fixed RHSA-2007:0965
Red Hat Enterprise Linux Desktop Workstation (v. 5 client)Fixed RHSA-2007:0965
Red Hat Enterprise Linux Desktop version 4Fixed RHSA-2007:0961
Red Hat Enterprise Linux ES version 4Fixed RHSA-2007:0961
Red Hat Enterprise Linux WS version 4Fixed RHSA-2007:0961

Timeline

  1. 2026-10-02 Threatist record created from CVE-2007-5162
  2. 2026-10-03 Alias added: GHSA-26pc-wx8w-v5vj

References

  • TI-2026-71508 Integer overflow in GitLab allows code execution on the server KEVCVSS 3.1CRITICAL 10.0
  • TI-2017-12709 Ruby before 2.4.3 allows Net::FTP command injection. CVSS 3.0HIGH 8.8
  • TI-2008-03501 Algorithmic complexity vulnerability in the WEBrick::HTTPUtils.split_header_value… CVSS 2.0HIGH 7.8
  • TI-2021-09891 In Ruby through 3.0 on Windows, a remote attacker can submit a crafted path when a Web… CVSS 3.1HIGH 7.5
  • TI-2013-03637 Heap-based buffer overflow in Ruby 1.8, 1.9 before 1.9.3-p484, 2.0 before 2.0.0-p353, 2.1… CVSS 2.0MEDIUM 6.8
  • TI-2018-11751 An issue was discovered in the OpenSSL library in Ruby before 2.3.8, 2.4.x before 2.4.5… CVSS 3.0CRITICAL 9.8
See all 92 →

Sources