Brightbox
  • Home
  • Pricing & Sign up
  • Why Brightbox?
  • Products & Services
  • FAQs
  • About
  • Blog
  • Wiki
  • Forums
  • Contact
Blog RSS feed
POSTED BY

John Leach

john@brightbox.co.uk

twitter_banner

Recent Posts

  • Passenger 2.2.11 packages for Ubuntu 8.04 Hardy
  • Passenger 2.2.10 packages for Ubuntu 8.04 Hardy
  • Important announcement: Multiple users and accounts release
  • Full Text Indexing in Ruby with Xapian Fu
  • MySQL slow query improvements

Ruby BigDecimal denial of service 10 Jun 09

From ruby-lang.org:

A denial of service (DoS) vulnerability was found on the BigDecimal standard library of Ruby. Conversion from BigDecimal objects into Float numbers had a problem which enables attackers to effectively cause segmentation faults.

ActiveRecord relies on this method, so most Rails applications are affected by this. Though this is not a Rails-specific issue.

We’re currently  building new Ruby packages for Brightbox customers with the relevant patches to fix this vulnerability. We’ll keep this post updated with the latest news.

UPDATE, 15:46 BST: New Ruby EE packages are now available in our Ruby Enterprise Ubuntu repository. We’re working on updates for the standard Ubuntu version of Ruby.

You can confirm that the update fixes the bug with the following command:

ruby -e 'require "bigdecimal";BigDecimal("E99999999").to_s("F");puts "OK"'

If your version of Ruby is vulnerable, you’ll get a “Segmentation fault” error message, otherwise it prints “OK”.

UPDATE: Official Ubuntu packages to fix this vulnerability are now available.  The Hardy package is libruby1.8 version 1.8.6.111-2ubuntu1.3 and the Dapper package is libruby1.8 version 1.8.4-1ubuntu1.7.  The packages will be available for install after a normal apt-get update.

Posted 10 June 2009 by John Leach

activerecord+ bigdecimal+ dos+ rails+ ruby+ security+ vulnerabilities

2 Comments

  1. 9 months ago Sam Stokes said:

    Hi John, thanks for the timely update. Will you also be building new Ruby EE packages with the fix?

  2. 9 months ago John Leach said:

    Hi Sam, yes, I realise that wasn’t clear. We’ll have updated Ruby EE packages too.

Comments are now closed.


Recent blog posts

  • Passenger 2.2.11 packages for Ubuntu 8.04 Hardy
    6 days ago
  • Passenger 2.2.10 packages for Ubuntu 8.04 Hardy
    13 days ago
  • Important announcement: Multiple users and accounts release
    28 days ago
  • Full Text Indexing in Ruby with Xapian Fu
    about 1 month ago
  • MySQL slow query improvements
    about 1 month ago
  • Brightbox Gem v2.3.6 released
    about 1 month ago

Join our email list

Flickr (more...)

RSS feeds

Blog feed

Flickr feed

Recent Wiki updates

System Status feed




Brightbox Partners and Vendors

Wiki | Forums | Terms & Conditions | Privacy | Site Map

Copyright © 2010 Brightbox Systems Ltd. All rights reserved