Sharon Machlis's picture
Sharon Machlis

Machlis Musings

Security hole uncovered in Ruby; many Rails apps likely affected

The Ruby programming language's bigDecimal standard library has a denial-of-service vulnerability that would allow malicious hackers to successfully launch a DoS attack. The security hole allows an attack "by causing BigDecimal to parse an insanely large number, such as: BigDecimal("9E69999999").to_s("F")," according to a Web site maintained by the Ruby community.

The Rails framework's ActiveRecord standard model uses this Ruby library, "so most Rails applicaions are affected by this," the posting notes.

Ruby 1.8.6-p368 and all prior versions, as well as 1.8.7-p160 and all prior versions are affected. Users are advised to upgrade to 1.8.6-p369 or 1.8.7-p173. Ruby's 1.9.1 series is not affected by the security hole.

There is a suggested workaround for those unable to upgrade, according to an e-mail from Rails contributor and consultant Michael Koziarski.


What is Tech Briefcase?
TechBriefcase is a new, free service where IT Professionals can Search, Store and Share IT white papers and content like this. Learn more
Bookmark content
Speed up your research efforts with content across the web.
Search and Store
Find the white papers you need. Create folders for any topic.
View Anywhere
Open your briefcase on your iPhone, tablet or desktop. Share with colleagues.
Don't have an account yet?