Ruby on Rails JSON Parser Crafted Payload YAML Subset Decoding Remote Code Execution

Metadata

high
7.5
activesupport
CVE-2013-0333
osvdb.org
2013-01-28
2017-06-16 20:03
CVE-2013-0333 rails
CVE-2013-0333 ruby-activesupport-2.3
CVE-2013-0333
2017-06-16 19:02
2017-04-01 19:10
2017-01-05 20:15

Description

Ruby on Rails contains a flaw in the JSON parser. Rails supports multiple
parsing backends, one of which involves transforming JSON into YAML via the
YAML parser. With a specially crafted payload, an attacker can subvert the
backend into decoding a subset of YAML. This may allow a remote attacker to
bypass restrictions, allowing them to bypass authentication systems, inject
arbitrary SQL, inject and execute arbitrary code, or perform a DoS attack on
a Rails application.

Am I vulnerable?

The constraints below list the versions that this vulnerability is patched in, and versions that are unaffected. If a patch is ready but unrealeased, then it is pending.

Or, you can just let us figure it out for you! Appcanary continously monitor your installed packages, and tell you if any of them are vulnerable.

Sign up for monitoring

Affected package information

Package Patched in Unaffected in
activesupport ~> 2.3.16,>= 3.0.20 None