RubySec

Providing security resources for the Ruby community

CVE-2013-1854 (activerecord): Symbol DoS vulnerability in Active Record

ADVISORIES

GEM

activerecord

FRAMEWORK

rails

SEVERITY

CVSS v2: 7.8

UNAFFECTED VERSIONS

  • ~> 3.0.0

PATCHED VERSIONS

  • ~> 2.3.18
  • ~> 3.1.12
  • >= 3.2.13

DESCRIPTION

When a hash is provided as the find value for a query, the keys of the hash may be converted to symbols. Carefully crafted requests can coerce params[:name] to return a hash, and the keys to that hash may be converted to symbols. Ruby symbols are not garbage collected, so an attacker can initiate a denial of service attack by creating a large number of symbols.