Live threats

All CVEs / Ruby-lang

CVE-2011-0188Ruby-lang Ruby

Medium 6.8 No auth needed

Priority
56
CVSS 2.0
6.8
EPSS
3.0%
probability of exploitation in 30 days · percentile 88
Auth required
No
Published
Mar 23, 2011
Updated
Jun 16, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-189
Vector
AV:N/AC:M/Au:N/C:P/I:P/A:P

What happens

The VpMemAlloc function in bigdecimal.c in the BigDecimal class in Ruby 1.9.2-p136 and earlier, as used on Apple Mac OS X before 10.6.7 and other platforms, does not properly allocate memory, which allows context-dependent attackers to execute arbitrary code or cause a denial of service (application crash) via vectors involving creation of a large BigDecimal value within a 64-bit process, related to an "integer truncation issue."

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-langruby≤ 1.9.2-p136
ruby-langruby1.9
ruby-langruby1.9
ruby-langruby1.9.0
ruby-langruby1.9.0
ruby-langruby1.9.0-0
ruby-langruby1.9.0-1
ruby-langruby1.9.0-2
ruby-langruby1.9.0-20060415
ruby-langruby1.9.0-20070709
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
ruby-langruby1.9.1
ruby-langruby1.9.1
ruby-langruby1.9.1
ruby-langruby1.9.2
ruby-langruby1.9.2

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.