Live threats

All CVEs / Ruby-lang

CVE-2009-4124Ruby-lang Ruby

Critical 10.0 No auth needed

Priority
75
CVSS 2.0
10.0
EPSS
3.9%
probability of exploitation in 30 days · percentile 91
Auth required
No
Published
Dec 11, 2009
Updated
Jun 16, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-119
Vector
AV:N/AC:L/Au:N/C:C/I:C/A:C

What happens

Heap-based buffer overflow in the rb_str_justify function in string.c in Ruby 1.9.1 before 1.9.1-p376 allows context-dependent attackers to execute arbitrary code via unspecified vectors involving (1) String#ljust, (2) String#center, or (3) String#rjust. NOTE: some of these details are obtained from third party information.

Original NVD text.

What to do

  1. Apply the vendor's security update for Ruby.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
ruby-langruby1.9.1
ruby-langruby1.9.1
ruby-langruby1.9.1
ruby-langruby1.9.1
ruby-langruby1.9.1
ruby-langruby1.9.1
ruby-langruby1.9.1

Official sources

References

Links published by the sources. Open them with care.