Remote code executionin the webrick package.
Proof of concept public (Exploit-DB).
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.
- Upgrade webrick (RubyGems) to 1.4.0 or later.
Not confirmed by any source yet: severity not scored yet. We show these as not confirmed instead of guessing.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 30 Dec 2009CVE ID reserved by mitre.
- 13 Jan 2010Published in the CVE List.
- 7 Aug 2024CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (Exploit-DB).
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other vulnerabilities in this package
- www.ruby-lang.org x_refsource_CONFIRM
- www.redhat.com vendor-advisory, x_refsource_REDHAT
- secunia.com third-party-advisory, x_refsource_SECUNIA
- www.vupen.com vdb-entry, x_refsource_VUPEN
- www.redhat.com vendor-advisory, x_refsource_REDHAT
- www.ush.it x_refsource_MISC
- www.securityfocus.com vdb-entry, x_refsource_BID
- www.securityfocus.com mailing-list, x_refsource_BUGTRAQ
- securitytracker.com vdb-entry, x_refsource_SECTRACK
Patchminder. CVE-2009-4492: Remote code execution in the webrick package. https://patchminder.com/cve/cve-2009-4492/ (accessed 5 December 2026).