Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
💎 RubyGems
Not in CISA KEV

activesupport in Rails vulnerable to incorrect data conversionGHSA-xgr2-v94m-rc9g

GHSA-xgr2-v94m-rc9g is a remote code execution vulnerability in activesupport. 3 public exploit references exist, so weaponization risk is real. A fix is available for activesupport — see the affected versions and patch details below.

Also known asCVE-2013-0333
Published
Updated
Affected
2 pkgs
Patched
2 / 2
Exploits
3 known
Exploitation data as of Oct 23, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
95.6%probability of exploitation in next 30 days
Very High Risk0.00%
Lower risk than most CVEs100th percentile — riskier than 100% of all scored CVEsHighest risk
90.6%92.7%94.7%96.7%91.9%95.6%Apr 26Sep 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

Real-World Exposure

2 pkgs affected
💎activesupport💎activesupport

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects RubyGems packages — download data is not available via public APIs for these ecosystems.

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.

Affected Packages

2 total 2 fixed
EcosystemPackageVulnerable rangeFix
💎RubyGemsactivesupport≥ 2.3.2&&< 2.3.162.3.16bundle update activesupport --conservative
💎RubyGemsactivesupport≥ 3.0.0&&< 3.0.203.0.20bundle update activesupport --conservative

Affected Products

2 products · 57 configurations
Application
railsrubyonrails
31 versions
2.3.02.3.12.3.22.3.32.3.42.3.92.3.102.3.112.3.122.3.132.3.142.3.15
Application
ruby on railsrubyonrails
1 version
3.0.4
Exploits & PoCs
3

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

EDB-24434remotemultiple✓ Verified

Ruby on Rails - JSON Processor YAML Deserialization Code Execution (Metasploit)

by Metasploit · Jan 29, 2013

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for activesupport, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update activesupport to 2.3.16 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-xgr2-v94m-rc9g is resolved across your whole dependency graph.

  3. Workarounds

    Until you can upgrade, make sure every query built from user input uses parameterised statements or a prepared-statement API rather than string concatenation, and reduce the database account's privileges so an injected query cannot read or alter data beyond what the feature needs.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatCritical
ProductFixed inAdvisory
CloudForms for RHEL 6katello-0:1.1.12.1-1.el6cfRHSA-2013:0203
Red Hat Subscription Asset Manager 1.1rubygem-activesupport-1:3.0.10-7.el6cfRHSA-2013:0201
RHEL 6 Version of OpenShift Enterpriserubygem-activesupport-1:3.0.13-4.el6opRHSA-2013:0202

Frequently Asked Questions

`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.
O3 Security · Impact-Aware SCA

Is GHSA-xgr2-v94m-rc9g in your dependencies?

Find it across RubyGems, including transitive dependencies.

activesupport in Rails vulnerable to incorrect data…