Description
The (1) Net::ftptls, (2) Net::telnets, (3) Net::imap, (4) Net::pop, and (5) Net::smtp libraries in Ruby 1.8.5 and 1.8.6 do not verify that the commonName (CN) field in a server certificate matches the domain name in a request sent over SSL, which makes it easier for remote attackers to intercept SSL transmissions via a man-in-the-middle attack or spoofed web site, different components than CVE-2007-5162.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 4.0 | ruby1.8 | 1.8.5-4etch1 | DSA-1410-1 |
| Debian 4.0 | ruby1.9 | 1.9.0+20060609-1etch1 | DSA-1412-1 |
| Debian 3.1 | libopenssl-ruby | 0.1.4a-1sarge1 | DSA-1411-1 |
| Debian 3.1 | ruby1.8 | 1.8.2-7sarge6 | DSA-1410-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 5 | ruby +8 | 1.8.5-5.el5_1.1 | RHSA-2007:0965 |
| RHEL 4 | irb +6 | 1.8.1-7.EL4.8.1 | RHSA-2007:0961 |
Advisories 5
- RHSA-2007:0965 Red Hat Security Advisory: ruby security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2007:0961 Red Hat Security Advisory: ruby security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- DSA-1412-1 ruby1.9 - possible man-in-the-middle attacks Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-1411-1 libopenssl-ruby - possible man-in-the-middle attacks Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-1410-1 ruby1.8 - possible man-in-the-middle attacks Debian Security (DSA / DLA) · Mar 9, 2026
References
- 27576 third-party-advisory
- ADV-2007-4238 vdb-entry
- 26985 third-party-advisory
- TA07-352A third-party-advisory
- 28136 third-party-advisory
- USN-596-1 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=362081
- RHSA-2007:0961 vendor-advisory
- RHSA-2007:0965 vendor-advisory
- 27756 third-party-advisory
- DSA-1412 vendor-advisory
- 27673 third-party-advisory
- APPLE-SA-2007-12-17 vendor-advisory
- DSA-1410 vendor-advisory
- 27769 third-party-advisory
- http://docs.info.apple.com/article.html?artnum=307179
- SUSE-SR:2007:024 vendor-advisory
- MDVSA-2008:029 vendor-advisory
- 29556 third-party-advisory
- 1018938 vdb-entry
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13656
- 27818 third-party-advisory
- oval:org.mitre.oval:def:11025 vdb-entry signature
- 28645 third-party-advisory
- DSA-1411 vendor-advisory
- 26421 vdb-entry
- 27764 third-party-advisory