// For flags

CVE-2009-4492

Ruby 1.9.1 - WEBrick 'Terminal Escape Sequence in Logs' Command Injection

Severity Score

7.5
*CVSS v2

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

4
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

-
*SSVC
Descriptions

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.

WEBrick v1.3.1 en Ruby v1.8.6 del patchlevel 383, v1.8.7 al patchlevel 248, v1.8.8dev, 1.9.1 al patchlevel 376, y v1.9.2dev ,escribe datos en un archivo de los sin depurar los caracteres no escribibles, lo que podría permitir a atacantes remotos modificar la ventana de título, o posiblemente ejecutar comandos de su elección o sobrescribir archivos, a través de una petición HTTP que contiene una secuencia de escape para el emulador de terminal.

Nginx, Varnish, Cherokee, thttpd, mini-httpd, WEBrick, Orion, AOLserver, Yaws and Boa are subject to log escape sequence injection vulnerabilities.

*Credits: N/A
CVSS Scores
Attack Vector
Network
Attack Complexity
Low
Authentication
None
Confidentiality
Partial
Integrity
Partial
Availability
Partial
Attack Vector
Network
Attack Complexity
High
Authentication
None
Confidentiality
None
Integrity
Partial
Availability
None
* Common Vulnerability Scoring System
SSVC
  • Decision:-
Exploitation
-
Automatable
-
Tech. Impact
-
* Organization's Worst-case Scenario
Timeline
  • 2009-12-30 CVE Reserved
  • 2010-01-11 CVE Published
  • 2010-01-11 First Exploit
  • 2023-08-02 EPSS Updated
  • 2024-08-07 CVE Updated
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
CWE
CAPEC
Affected Vendors, Products, and Versions
Vendor Product Version Other Status
Vendor Product Version Other Status <-- --> Vendor Product Version Other Status
Ruby-lang
Search vendor "Ruby-lang"
Webrick
Search vendor "Ruby-lang" for product "Webrick"
1.3.1
Search vendor "Ruby-lang" for product "Webrick" and version "1.3.1"
ruby
Affected
in Ruby-lang
Search vendor "Ruby-lang"
Ruby
Search vendor "Ruby-lang" for product "Ruby"
>= 1.8.6 <= 1.8.6.383
Search vendor "Ruby-lang" for product "Ruby" and version " >= 1.8.6 <= 1.8.6.383"
-
Safe
Ruby-lang
Search vendor "Ruby-lang"
Webrick
Search vendor "Ruby-lang" for product "Webrick"
1.3.1
Search vendor "Ruby-lang" for product "Webrick" and version "1.3.1"
ruby
Affected
in Ruby-lang
Search vendor "Ruby-lang"
Ruby
Search vendor "Ruby-lang" for product "Ruby"
>= 1.8.7 <= 1.8.7.248
Search vendor "Ruby-lang" for product "Ruby" and version " >= 1.8.7 <= 1.8.7.248"
-
Safe
Ruby-lang
Search vendor "Ruby-lang"
Webrick
Search vendor "Ruby-lang" for product "Webrick"
1.3.1
Search vendor "Ruby-lang" for product "Webrick" and version "1.3.1"
ruby
Affected
in Ruby-lang
Search vendor "Ruby-lang"
Ruby
Search vendor "Ruby-lang" for product "Ruby"
>= 1.9.1 <= 1.9.1.376
Search vendor "Ruby-lang" for product "Ruby" and version " >= 1.9.1 <= 1.9.1.376"
-
Safe