CVE-2011-0188
What it is
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."
At a glance
- Exploitability
- Can be exploited over the network without logging in. Limited direct impact.
- Exploit odds
- 3.0% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 3.0% in the next 30 days (EPSS).
- Severity: 6.8 MEDIUM (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 3.0% · EPSS, next 30 days
- Weakness
- CWE-189
- Record status
- Modified
Affected
- ruby-lang Ruby ≤ 1.9.2-p136
- ruby-lang Ruby 1.9
- ruby-lang Ruby 1.9.0
- ruby-lang Ruby 1.9.0-0
- ruby-lang Ruby 1.9.0-1
- ruby-lang Ruby 1.9.0-2
- ruby-lang Ruby 1.9.0-20060415
- ruby-lang Ruby 1.9.0-20070709
Attack profile CVSS 2.0 · 6.8
- Attack vector
- Network
- Complexity
- Medium
- Authentication
- None
- Confidentiality
- Partial
- Integrity
- Partial
- Availability
- Partial
Raw vector
AV:N/AC:M/Au:N/C:P/I:P/A:P
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2011-0188.md and follow it. Check whether this project is affected by CVE-2011-0188. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- http://lists.apple.com/archives/security-announce/2011/Mar/msg00006.html
- http://support.apple.com/kb/HT4581
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ext/bigdecimal/bigdecimal.c?r1=29364&r2=30993
- https://bugzilla.redhat.com/show_bug.cgi?id=682332
- http://lists.apple.com/archives/security-announce/2011/Mar/msg00006.html
- http://support.apple.com/kb/HT4581
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ext/bigdecimal/bigdecimal.c?r1=29364&r2=30993
- https://bugzilla.redhat.com/show_bug.cgi?id=682332
References
- http://lists.apple.com/archives/security-announce/2011/Mar/msg00006.html
- http://support.apple.com/kb/HT4581
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ext/bigdecimal/bigdecimal.c?r1=29364&r2=30993
- http://www.mandriva.com/security/advisories?name=MDVSA-2011:097
- http://www.mandriva.com/security/advisories?name=MDVSA-2011:098
- http://www.redhat.com/support/errata/RHSA-2011-0908.html
- http://www.redhat.com/support/errata/RHSA-2011-0909.html
- http://www.redhat.com/support/errata/RHSA-2011-0910.html
- http://www.securitytracker.com/id?1025236
- https://bugzilla.redhat.com/show_bug.cgi?id=682332
- http://lists.apple.com/archives/security-announce/2011/Mar/msg00006.html
- http://support.apple.com/kb/HT4581
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ext/bigdecimal/bigdecimal.c?r1=29364&r2=30993
- http://www.mandriva.com/security/advisories?name=MDVSA-2011:097
- http://www.mandriva.com/security/advisories?name=MDVSA-2011:098
- http://www.redhat.com/support/errata/RHSA-2011-0908.html
- http://www.redhat.com/support/errata/RHSA-2011-0909.html
- http://www.redhat.com/support/errata/RHSA-2011-0910.html
- http://www.securitytracker.com/id?1025236
- https://bugzilla.redhat.com/show_bug.cgi?id=682332