REDHAT-BUG-921329: Medium severity Ruby on Rails Active Record vulnerability

Published Mar 14, 2013
·
Updated

Symbol DoS vulnerability in Active Record

There is a symbol DoS vulnerability in Active Record. This vulnerability has been assigned the CVE identifier CVE-2013-1854.

Versions Affected: 3.2.x, 3.1.x, 2.3.x Not affected: 3.0.x Fixed Versions: 3.2.13, 3.1.12

Impact ------ When a hash is provided as the find value for a query, the keys of the hash may be converted to symbols. In this example,

User.where(:name => { 'foo' => 'bar' })

the string 'foo' will be converted to a symbol. Impacted code will look something like this:

User.where(:name => params[:name])

Carefully crafted requests can coerce params[:name] to return a hash, and the keys to that hash may be converted to symbols.

All users running an affected release should either upgrade or use one of the work arounds immediately.

Releases -------- The 3.2.13 and 3.1.12 releases are available at the normal locations.

Workarounds ----------- To work around this problem, change code that looks like this:

User.where(:name => params[:name])

to code like this:

User.where(:name => params[:name].tos)

Patches ------- To aid users who aren't able to upgrade immediately we have provided patches for the two supported release series. They are in git-am format and consist of a single changeset.

3-2-attributesymbols.patch - Patch for 3.2 series 3-1-attributesymbols.patch - Patch for 3.1 series 2-3-attributesymbols.patch - Patch for 2.3 series

Please note that only the 3.1.x and 3.2.x series are supported at present. Users of earlier unsupported releases are advised to upgrade as soon as possible as we cannot guarantee the continued availability of security fixes for unsupported releases.

Credits -------

Thanks to Ben Murphy for reporting this!

Affected Software

1 affected component
Ruby on Rails Active Record>=2.3.x<=3.2.x

Event History

Mar 14, 2013
Data Sourced
02:46 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-921329?

The severity of REDHAT-BUG-921329 is categorized as a denial of service (DoS) vulnerability.

2

How do I fix REDHAT-BUG-921329?

To fix REDHAT-BUG-921329, upgrade to a version of Active Record that is not affected, specifically versions above 3.2.x.

3

Which versions are affected by REDHAT-BUG-921329?

Versions 2.3.x, 3.1.x, and 3.2.x of Active Record are affected by REDHAT-BUG-921329.

4

What is the nature of the vulnerability in REDHAT-BUG-921329?

REDHAT-BUG-921329 is a symbol denial of service (DoS) vulnerability in Active Record.

5

Is there a CVE associated with REDHAT-BUG-921329?

Yes, REDHAT-BUG-921329 is associated with CVE-2013-1854.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203