CVE-2009-4492 EXPLOIT
7.5
HIGH · CVSS 2.0 · EPSS 16.2% (pctl 97)
Patch early
A public exploit exists.
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.
Scoring
| CVSS | 7.5 (HIGH, v2.0) |
|---|---|
| Vector | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| EPSS | 16.23% — more likely to be exploited than 97% of all CVEs |
| On CISA KEV | no |
| Public exploit | yes |
| Published | 2010-01-13 |
| Last modified | 2026-06-16 |
Affected (2)
| Vendor | Product |
|---|---|
| ruby-lang | ruby |
| ruby-lang | webrick |
Public exploits
| Source | Title | Date |
|---|---|---|
| exploit-db | Ruby 1.9.1 - WEBrick 'Terminal Escape Sequence in Logs' Command Injection | 2010-01-11 |
References
- http://secunia.com/advisories/37949
- http://securitytracker.com/id?1023429
- http://www.redhat.com/support/errata/RHSA-2011-0908.html
- http://www.redhat.com/support/errata/RHSA-2011-0909.html
- http://www.ruby-lang.org/en/news/2010/01/10/webrick-escape-sequence-injection
- http://www.securityfocus.com/archive/1/508830/100/0/threaded
- http://www.securityfocus.com/bid/37710
- http://www.ush.it/team/ush/hack_httpd_escape/adv.txt
- http://www.vupen.com/english/advisories/2010/0089
- http://secunia.com/advisories/37949
- http://securitytracker.com/id?1023429
- http://www.redhat.com/support/errata/RHSA-2011-0908.html
- http://www.redhat.com/support/errata/RHSA-2011-0909.html
- http://www.ruby-lang.org/en/news/2010/01/10/webrick-escape-sequence-injection
- http://www.securityfocus.com/archive/1/508830/100/0/threaded
- http://www.securityfocus.com/bid/37710
- http://www.ush.it/team/ush/hack_httpd_escape/adv.txt
- http://www.vupen.com/english/advisories/2010/0089
→ the Explorer · watch your stack · NVD