All vulnerabilities

Servers and applications

CVE-2007-5162

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.

Severity
Medium 4.3
Published
1 Oct 2007
Last changed
16 Jun 2026
Added to UpHeron
21 Oct 2026
Exploit chance
1.7% in the next 30 daysHigher than 77% of CVEs. EPSS by FIRST, 12 Nov 2026
Weakness
Improper authentication (CWE-287)
Attack
Over the network · No login needed
Attacker can
Change some data
CVSS vector
AV:N/AC:M/Au:N/C:N/I:P/A:N
Sources
NVD

Affected software

SoftwareAffected versions
RubyServers and applications · cpe:a:ruby-lang:ruby
  • Version 1.8.5
  • Version 1.8.6

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2007-5162
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2007-5162