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
- svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13499 patch
- securityfocus.com/bid/25847 patch
- svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13500 patch
- svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13502 patch
- svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13504 patch
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 morefixed: 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.1fixed: 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 morefixed: 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.1fixed: 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 morefixed: 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.1fixed: 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
-
- CWE-287 Improper Authentication
References
-
svn.ruby-lang.org
/cgi-bin/viewvc.cgi?view=rev&revision=13499
patch
-
securityfocus.com
/bid/25847
vdb-entry, patch
-
svn.ruby-lang.org
/cgi-bin/viewvc.cgi?view=rev&revision=13500
patch
-
svn.ruby-lang.org
/cgi-bin/viewvc.cgi?view=rev&revision=13502
patch
-
svn.ruby-lang.org
/cgi-bin/viewvc.cgi?view=rev&revision=13504
patch
-
ubuntu.com
/usn/usn-596-1
vendor-advisory
-
redhat.com
/archives/fedora-package-announce/2007-October/msg00391.html
vendor-advisory
-
redhat.com
/support/errata/RHSA-2007-0961.html
vendor-advisory
-
redhat.com
/support/errata/RHSA-2007-0965.html
vendor-advisory
-
debian.org
/security/2007/dsa-1412
vendor-advisory
-
debian.org
/security/2007/dsa-1410
vendor-advisory
-
redhat.com
/archives/fedora-package-announce/2007-October/msg00087.html
vendor-advisory
-
novell.com
/linux/security/advisories/2007_24_sr.html
vendor-advisory
-
mandriva.com
/security/advisories?name=MDVSA-2008:029
vendor-advisory
-
redhat.com
/archives/fedora-package-announce/2007-October/msg00097.html
vendor-advisory
-
debian.org
/security/2007/dsa-1411
vendor-advisory
-
securityfocus.com
/archive/1/483577/100/0/threaded
mailing-list
-
secunia.com
/advisories/27576
third-party-advisory
-
secunia.com
/advisories/26985
third-party-advisory
-
vupen.com
/english/advisories/2007/3340
vdb-entry
-
exchange.xforce.ibmcloud.com
/vulnerabilities/36861
vdb-entry
- bugzilla.redhat.com /show_bug.cgi?id=313791
-
secunia.com
/advisories/27044
third-party-advisory
-
secunia.com
/advisories/27756
third-party-advisory
- isecpartners.com /advisories/2007-006-rubyssl.txt
-
secunia.com
/advisories/27673
third-party-advisory
-
oval.cisecurity.org
/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10738
vdb-entry, signature
-
secunia.com
/advisories/27769
third-party-advisory
-
secunia.com
/advisories/29556
third-party-advisory
-
secunia.com
/advisories/27818
third-party-advisory
-
secunia.com
/advisories/27432
third-party-advisory
-
securityfocus.com
/archive/1/480987/100/0/threaded
mailing-list
-
securityreason.com
/securityalert/3180
third-party-advisory
-
secunia.com
/advisories/28645
third-party-advisory
-
secunia.com
/advisories/27764
third-party-advisory
Sources
- CVE List CVE-2007-5162
- NVD CVE-2007-5162
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.