CVE-2009-4492
HIGH 7.5CVSS 2.0WEBrick Improper Input Validation 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.
- Published
- 13 Jan 2010
- Last modified
- 16 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- GHSA-6mq2-37j5-w6r6
- Sources
- NVDJSONOSV GHSA-6mq2-37j5-w6r6JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ruby-lang | webrickcpe:2.3:a:ruby-lang:webrick:1.3.1:*:*:*:*:ruby:*:* |
= 1.3.1 | |
| OSV | RubyGems | webrick | < 1.4.0 | 1.4.0 |
References
- http://secunia.com/advisories/37949 · Not Applicable, Vendor Advisory
- http://securitytracker.com/id?1023429 · Broken Link, Exploit, Third Party Advisory, VDB Entry
- http://www.redhat.com/support/errata/RHSA-2011-0908.html · Third Party Advisory, WEB
- http://www.redhat.com/support/errata/RHSA-2011-0909.html · Third Party Advisory, WEB
- http://www.ruby-lang.org/en/news/2010/01/10/webrick-escape-sequence-injection · Patch, Vendor Advisory, WEB
- http://www.securityfocus.com/archive/1/508830/100/0/threaded · Broken Link, Third Party Advisory, VDB Entry
- http://www.securityfocus.com/bid/37710 · Broken Link, Exploit, Third Party Advisory, VDB Entry
- http://www.ush.it/team/ush/hack_httpd_escape/adv.txt · Broken Link, Exploit, WEB
- http://www.vupen.com/english/advisories/2010/0089 · Permissions Required
- https://nvd.nist.gov/vuln/detail/CVE-2009-4492 · ADVISORY
- https://github.com/advisories/GHSA-6mq2-37j5-w6r6 · ADVISORY
- https://github.com/ruby/webrick · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/webrick/CVE-2009-4492.yml · WEB
- https://web.archive.org/web/20100113155532/http://www.vupen.com/english/advisories/2010/0089 · WEB
- https://web.archive.org/web/20100815010948/http://secunia.com/advisories/37949 · WEB
- https://web.archive.org/web/20170402100552/http://securitytracker.com/id?1023429 · WEB
- https://web.archive.org/web/20170908140655/http://www.securityfocus.com/archive/1/508830/100/0/threaded · WEB
- https://web.archive.org/web/20200228145937/http://www.securityfocus.com/bid/37710 · WEB
History
- 25 Nov 2026 20:15 UTC · NVD: first stored (published 13 Jan 2010)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 Oct 2017)