Skip to content
OpenAdvisories
Medium Public exploit CVE-2009-4492 EUVD-2017-0178GHSA-6mq2-37j5-w6r6

WEBrick Improper Input Validation vulnerability

Published Jan 13, 2010 · Updated Aug 7, 2024 · Assigned by mitre

Description

WEBrick 1.3.1 in Ruby 1.8.6 through patchlevel 383, 1.8.7 through patchlevel 248, 1.8.8dev, 1.9.1 through patchlevel 376, and 1.9.2dev writes data to a log file without sanitizing non-printable characters, which might allow remote attackers to modify a window's title, or possibly execute arbitrary commands or overwrite files, via an HTTP request containing an escape sequence for a terminal emulator.

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
RHEL 5 ruby +8 1.8.5-19.el5_6.1 RHSA-2011:0909
RHEL 4 irb +6 1.8.1-16.el4 RHSA-2011:0908

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.

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems webrick < 1.4.0 1.4.0 GHSA-6mq2-37j5-w6r6

Advisories 2

References