Skip to content
OpenAdvisories
Unscored Public exploit CVE-2008-3443 EUVD-2008-3429GHSA-v838-v88j-gw93

The regular expression engine (regex.c) 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 r1842…

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

Description

The regular expression engine (regex.c) 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 allows remote attackers to cause a denial of service (infinite loop and crash) via multiple long requests to a Ruby socket, related to memory allocation failure, and as demonstrated against Webrick.

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-4etch4 DSA-1695-1
Debian 4.0 ruby1.9 1.9.0+20060609-1etch4 DSA-1695-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
RHEL 3 irb +6 1.6.8-13.el3 RHSA-2008:0896
RHEL 2 irb +5 1.6.4-7.el2 RHSA-2008:0895

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 4

References