CVE-2007-5162
What it is
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.
At a glance
- Exploitability
- Can be exploited over the network without logging in. Limited direct impact.
- Exploit odds
- 1.7% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 1.7% in the next 30 days (EPSS).
- Severity: 4.3 MEDIUM (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 1.7% · EPSS, next 30 days
- Weakness
- CWE-287 · Improper authentication
- Record status
- Modified
Affected
- ruby-lang Ruby 1.8.5
- ruby-lang Ruby 1.8.6
Attack profile CVSS 2.0 · 4.3
- Attack vector
- Network
- Complexity
- Medium
- Authentication
- None
- Confidentiality
- None
- Integrity
- Partial
- Availability
- None
Raw vector
AV:N/AC:M/Au:N/C:N/I:P/A:N
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2007-5162.md and follow it. Check whether this project is affected by CVE-2007-5162. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13499
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13500
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13502
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13504
- http://www.securityfocus.com/bid/25847
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13499
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13500
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13502
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13504
- http://www.securityfocus.com/bid/25847
References
- http://secunia.com/advisories/26985
- http://secunia.com/advisories/27044
- http://secunia.com/advisories/27432
- http://secunia.com/advisories/27576
- http://secunia.com/advisories/27673
- http://secunia.com/advisories/27756
- http://secunia.com/advisories/27764
- http://secunia.com/advisories/27769
- http://secunia.com/advisories/27818
- http://secunia.com/advisories/28645
- http://secunia.com/advisories/29556
- http://securityreason.com/securityalert/3180
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13499
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13500
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13502
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13504
- http://www.debian.org/security/2007/dsa-1410
- http://www.debian.org/security/2007/dsa-1411
- http://www.debian.org/security/2007/dsa-1412
- http://www.isecpartners.com/advisories/2007-006-rubyssl.txt
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:029
- http://www.novell.com/linux/security/advisories/2007_24_sr.html
- http://www.redhat.com/support/errata/RHSA-2007-0961.html
- http://www.redhat.com/support/errata/RHSA-2007-0965.html
- http://www.securityfocus.com/archive/1/480987/100/0/threaded