CVE-2007-5162Ruby-lang Ruby
Medium 4.3 No auth needed
Follow: this CVE · Ruby-lang · Ruby-lang Ruby We alert you by email or Slack (account required).
- Priority
- 41
- CVSS 2.0
- 4.3
- EPSS
- 1.7% probability of exploitation in 30 days · percentile 77
- Auth required
- No
- Published
- Oct 1, 2007
- Updated
- Jun 16, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-287
- Vector
AV:N/AC:M/Au:N/C:N/I:P/A:N
What happens
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.
What to do
- Apply the vendor's security update for Ruby.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| ruby-lang | ruby | 1.8.5 |
| ruby-lang | ruby | 1.8.6 |
Official sources
References
Links published by the sources. Open them with care.
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- secunia.com
- securityreason.com
- svn.ruby-lang.org Patch
- svn.ruby-lang.org Patch
- svn.ruby-lang.org Patch
- svn.ruby-lang.org Patch
- www.debian.org
- www.debian.org
- www.debian.org
- www.isecpartners.com
- www.mandriva.com
- www.novell.com
- www.redhat.com
- www.redhat.com
- www.securityfocus.com
- www.securityfocus.com
- www.securityfocus.com Patch
- www.ubuntu.com
- www.vupen.com
- bugzilla.redhat.com
- exchange.xforce.ibmcloud.com
- oval.cisecurity.org
- www.redhat.com
- www.redhat.com
- www.redhat.com