Vulnerabilities · 2009 · Ruby-lang
CVE-2009-4492
Ruby-lang Webrick vulnerability
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.
Affected products
Webrick. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Ruby-lang Webrick runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- secunia.com/advisories/37949 · Vendor Advisory
- www.ruby-lang.org/en/news/2010/01/10/webrick-escape-sequence-injection · Patch
- securitytracker.com/id?1023429 · Exploit
- www.redhat.com/support/errata/RHSA-2011-0908.html · Third Party Advisory
- www.redhat.com/support/errata/RHSA-2011-0909.html · Third Party Advisory
- www.securityfocus.com/archive/1/508830/100/0/threaded · Third Party Advisory
- www.securityfocus.com/bid/37710 · Exploit
- www.ush.it/team/ush/hack_httpd_escape/adv.txt · Exploit
- nvd.nist.gov/vuln/detail/CVE-2009-4492
- cve.org/CVERecord?id=CVE-2009-4492
More vulnerabilities in Ruby-lang products
CVE-2026-46727CVE-2025-58767CVE-2025-43857CVE-2025-27788CVE-2025-27221CVE-2025-27220CVE-2025-27219CVE-2025-6442All 115
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.