Skip to content
OpenAdvisories
Unscored Public exploit CVE-2008-3657 EUVD-2008-3643GHSA-5f6v-fgcw-j5px

The dl module in Ruby 1.8.5 and earlier, 1.8.6 through 1.8.6-p286, 1.8.7 through 1.8.7-p71, and 1.9 through r18423 does not check "taintnes…

Published Aug 13, 2008 · Updated Aug 7, 2024 · Assigned by mitre

Description

The dl module in Ruby 1.8.5 and earlier, 1.8.6 through 1.8.6-p286, 1.8.7 through 1.8.7-p71, and 1.9 through r18423 does not check "taintness" of inputs, which allows context-dependent attackers to bypass safe levels and execute dangerous functions by accessing a library using DL.dlopen.

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.

ReleasePackageFixed inAdvisory
Debian 4.0 ruby1.8 1.8.5-4etch3 DSA-1651-1
Debian 4.0 ruby1.9 1.9.0+20060609-1etch3 DSA-1652-1
ReleasePackageFixed inAdvisory
RHEL 5 ruby +8 1.8.5-5.el5_2.5 RHSA-2008:0897
RHEL 4 irb +6 1.8.1-7.el4_7.1 RHSA-2008:0897
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 ruby3.3 +5 3.3.10-23.1.hum1 RHSA-2026:7305
Red Hat Hardened Images 1 ruby3.4 +5 3.4.8-31.1.hum1 RHSA-2026:7307
Red Hat Hardened Images 1 ruby4.0 +5 4.0.0-33.3.hum1 RHSA-2026:8838

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 6

References