Skip to content
OpenAdvisories
High Public exploit CVE-2013-0333 EUVD-2017-0331GHSA-xgr2-v94m-rc9g

activesupport in Rails vulnerable to incorrect data conversion

Published Jan 30, 2013 · Updated Aug 6, 2024 · Assigned by redhat

Description

lib/active_support/json/backends/yaml.rb in Ruby on Rails 2.3.x before 2.3.16 and 3.0.x before 3.0.20 does not properly convert JSON data to YAML data for processing by a YAML parser, which allows remote attackers to execute arbitrary code, conduct SQL injection attacks, or bypass authentication via crafted data that triggers unsafe decoding, a different vulnerability than CVE-2013-0156.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rails 2.3.14.1 —
Debian 13 rails 2.3.14.1 —
Debian 12 rails 2.3.14.1 —
Debian 6.0 rails 2.3.5-1.2+squeeze6 DSA-2613-1
ReleasePackageFixed inAdvisory
Red Hat OpenShift 1 rubygem-activesupport 1:3.0.13-4.el6op RHSA-2013:0202

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 2 modules

Exploit-DB 1

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems activesupport >= 2.3.2, < 2.3.16 2.3.16 GHSA-xgr2-v94m-rc9g
RubyGems activesupport >= 3.0.0, < 3.0.20 3.0.20 GHSA-xgr2-v94m-rc9g

Advisories 2

References