CVE-2009-4492Ruby-lang Webrick
High 7.5 No auth neededHigh EPSS
Follow: this CVE · Ruby-lang · Ruby-lang Webrick We alert you by email or Slack (account required).
- Priority
- 62
- CVSS 2.0
- 7.5
- EPSS
- 16.2% probability of exploitation in 30 days · percentile 98
- Auth required
- No
- Published
- Jan 13, 2010
- Updated
- Jun 16, 2026
- Category
- Application · Cross-platform
- Vector
AV:N/AC:L/Au:N/C:P/I:P/A:P
What happens
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.
What to do
- Apply the vendor's security update for Webrick.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | webrick |
< 1.4.0 |
1.4.0 |
gem "webrick", ">= 1.4.0" |
Per OSV / GitHub Advisories (GHSA-6mq2-37j5-w6r6). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| ruby-lang | webrick | 1.3.1 |
Official sources
References
Links published by the sources. Open them with care.
- secunia.com Not Applicable Vendor Advisory
- securitytracker.com Broken Link Exploit Third Party Advisory
- www.redhat.com Third Party Advisory
- www.redhat.com Third Party Advisory
- www.ruby-lang.org Patch Vendor Advisory
- www.securityfocus.com Broken Link Third Party Advisory VDB Entry
- www.securityfocus.com Broken Link Exploit Third Party Advisory
- www.ush.it Broken Link Exploit
- www.vupen.com Permissions Required