Active Record Improper Input ValidationGHSA-3crr-9vmg-864v
GHSA-3crr-9vmg-864v is a Improper Input Validation vulnerability in activerecord. A fix is available for activerecord — see the affected versions and patch details below.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
activerecord💎activerecord💎activerecordReal-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
The Active Record component in Ruby on Rails 2.3.x before 2.3.18, 3.1.x before 3.1.12, and 3.2.x before 3.2.13 processes certain queries by converting hash keys to symbols, which allows remote attackers to cause a denial of service via crafted input to a where method.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 💎RubyGems | activerecord | ≥ 2.3.0&&< 2.3.18 | 2.3.18bundle update activerecord --conservative |
| 💎RubyGems | activerecord | ≥ 3.1.0&&< 3.1.12 | 3.1.12bundle update activerecord --conservative |
| 💎RubyGems | activerecord | ≥ 3.2.0&&< 3.2.13 | 3.2.13bundle update activerecord --conservative |
Affected Products
enterprise linuxredhatrailsrubyonrailsruby on railsrubyonrailsDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for activerecord, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update activerecord to 2.3.18 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-3crr-9vmg-864v is resolved across your whole dependency graph.
Workarounds
Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.
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.
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat Subscription Asset Manager 1.4 | katello-0:1.4.3.28-1.el6sam_splice | RHSA-2014:1863 |
| RHEL 6 Version of OpenShift Enterprise | ruby193-rubygem-activerecord-1:3.2.8-6.el6 | RHSA-2013:0699 |
Frequently Asked Questions
Is GHSA-3crr-9vmg-864v in your dependencies?
Find it across RubyGems, including transitive dependencies.