activerecord vulnerabilities

Databases on Rails. Build a persistent domain model by mapping database tables to Ruby classes. Strong conventions for associations, validations, aggregations, migrations, and testing come baked-in.

Registry
RubyGems
Latest
8.1.4.1
License
MIT

23 known advisories

The latest version, 8.1.4.1, is not affected by any of them. Projects on older versions may be.

Update to the latest version:bundle update --conservative activerecord # Gemfile: '>= 8.1.4.1'

Is your project on an affected activerecord?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Security advisories for activerecord

  • MediumCVE-2025-55193GHSA-76r7-hhxj-r77613 Aug 2025

    Active Record logging vulnerable to ANSI escape injection

    Affected
    >=8.0 <8.0.2.1 · >=7.2 <7.2.2.2 · <7.1.5.2
    Fixed in
    7.1.5.2, 7.2.2.2, 8.0.2.1
  • HighCVE-2022-44566GHSA-579w-22j4-474918 Jan 2023

    Denial of Service Vulnerability in ActiveRecord's PostgreSQL adapter

    Affected
    <6.1.7.1 · >=7.0.0 <7.0.4.1
    Fixed in
    6.1.7.1, 7.0.4.1
  • HighCVE-2023-22794GHSA-hq7p-j377-6v6318 Jan 2023

    SQL Injection Vulnerability via ActiveRecord comments

    Affected
    >=6.0.0 <6.0.6.1 · >=6.1.0 <6.1.7.1 · >=7.0.0 <7.0.4.1
    Fixed in
    6.0.6.1, 6.1.7.1, 7.0.4.1
  • CriticalCVE-2022-32224GHSA-3hhc-qp5v-9p2j12 Jul 2022

    Active Record RCE bug with Serialized Columns

    Affected
    >=7.0.0 <7.0.3.1 · >=6.1.0 <6.1.6.1 · >=6.0.0 <6.0.5.1 · <5.2.8.1
    Fixed in
    5.2.8.1, 6.0.5.1, 6.1.6.1, 7.0.3.1
  • CriticalCVE-2013-3221GHSA-f57c-hx33-hvh814 May 2022

    Active Record component in Ruby on Rails has a data-type injection vulnerability

    Affected
    <4.2.0
    Fixed in
    4.2.0
  • HighCVE-2021-22880GHSA-8hc4-xxm3-5ppp2 Mar 2021

    Active Record subject to Regular Expression Denial-of-Service (ReDoS)

    Affected
    >=5.0.0 <5.2.4.5 · >=6.0.0 <6.0.3.5 · >=6.1.0 <6.1.2.1
    Fixed in
    5.2.4.5, 6.0.3.5, 6.1.2.1
  • HighCVE-2012-2695GHSA-76wq-xw4h-f8wj24 Oct 2017

    activerecord vulnerable to SQL Injection

    Affected
    >=3.0.0.beta <3.0.14 · >=3.1.0 <3.1.6 · >=3.2.0 <3.2.6 · <2.3.15
    Fixed in
    2.3.15, 3.0.14, 3.1.6, 3.2.6
  • HighCVE-2011-2930GHSA-h6w6-xmqv-7q7824 Oct 2017

    activerecord vulnerable to SQL Injection

    Affected
    >=2.0.0 <2.3.13 · >=3.0.0.beta <3.0.10 · >=3.1.0.beta1 <3.1.0.rc5
    Fixed in
    2.3.13, 3.0.10, 3.1.0.rc5
  • HighCVE-2011-0448GHSA-jmm9-2p29-vh2w24 Oct 2017

    activerecord vulnerable to SQL Injection

    Affected
    >=3.0.0 <3.0.4
    Fixed in
    3.0.4
  • HighCVE-2008-4094GHSA-xf96-32q2-9rw224 Oct 2017

    Rails ActiveRecord gem vulnerable to SQL injection

    Affected
    <2.1.1
    Fixed in
    2.1.1
  • MediumCVE-2012-2661GHSA-fh39-v733-mxfr24 Oct 2017

    Active Record vulnerable to SQL Injection via nested query parameters

    Affected
    >=3.0.0 <3.0.13 · >=3.1.0 <3.1.5 · >=3.2.0 <3.2.4
    Fixed in
    3.0.13, 3.1.5, 3.2.4
  • MediumCVE-2010-3933GHSA-gjxw-5w2q-7grf24 Oct 2017

    Rails activerecord gem has Improper Input Validation vulnerability

    Affected
    >=2.3.9 <2.3.10 · >=3.0.0 <3.0.1
    Fixed in
    2.3.10, 3.0.1
  • CriticalCVE-2013-0277GHSA-fhj9-cjjh-27vm24 Oct 2017

    Active Record contains deserialization of arbitrary YAML

    Affected
    <2.3.17 · >=3.0.0 <3.1.0
    Fixed in
    2.3.17, 3.1.0
  • HighCVE-2012-6496GHSA-gh2w-j7cx-266424 Oct 2017

    Active Record contains SQL Injection

    Affected
    >=3.0.0.beta <3.0.18 · >=3.1.0 <3.1.9 · >=3.2.0 <3.2.10 · <2.3.15
    Fixed in
    2.3.15, 3.0.18, 3.1.9, 3.2.10
  • MediumCVE-2013-1854GHSA-3crr-9vmg-864v24 Oct 2017

    Active Record Improper Input Validation

    Affected
    >=2.3.0 <2.3.18 · >=3.1.0 <3.1.12 · >=3.2.0 <3.2.13
    Fixed in
    2.3.18, 3.1.12, 3.2.13
  • MediumCVE-2013-0155GHSA-gppp-5xc5-wfpx24 Oct 2017

    Active Record allows bypassing of database-query restrictions

    Affected
    >=3.0.0 <3.0.19 · >=3.1.0 <3.1.10 · >=3.2.0 <3.2.11
    Fixed in
    3.0.19, 3.1.10, 3.2.11
  • MediumCVE-2013-0276GHSA-gr44-7grc-37vq24 Oct 2017

    ActiveRecord vulnerable to modification of protected model attributes

    Affected
    <2.3.17 · >=3.1.0 <3.1.11 · >=3.2.0 <3.2.12
    Fixed in
    2.3.17, 3.1.11, 3.2.12
  • HighCVE-2014-3514GHSA-9rf5-jm6f-2fmm24 Oct 2017

    Active Record subject to strong parameters protection bypass

    Affected
    >=4.0.0 <4.0.9 · >=4.1.0 <4.1.5
    Fixed in
    4.0.9, 4.1.5
  • HighCVE-2014-3482GHSA-mhwp-qhpc-h3jm24 Oct 2017

    SQL Injection in Active Record

    Affected
    >=2.0.0 <3.2.19
    Fixed in
    3.2.19
  • HighCVE-2014-3483GHSA-r8fh-hq2p-7qhq24 Oct 2017

    Active Record contains SQL Injection via improper range quoting

    Affected
    >=4.0.0 <4.0.7 · >=4.1.0 <4.1.3
    Fixed in
    4.0.7, 4.1.3
  • MediumCVE-2014-0080GHSA-hqf9-rc9j-5fmj24 Oct 2017

    Array data injection vulnerability in activerecord

    Affected
    >=4.0.0 <4.0.3 · >=4.1.0.beta1 <4.1.0.beta2
    Fixed in
    4.0.3, 4.1.0.beta2
  • MediumCVE-2015-7577GHSA-xrr6-3pc4-m44724 Oct 2017

    Active Record Improper Access Control

    Affected
    >=3.1.0 <3.2.22.1 · >=4.0.0 <4.1.14.1 · >=4.2.0 <4.2.5.1 · >=5.0.0.beta1 <5.0.0.beta1.1
    Fixed in
    3.2.22.1, 4.1.14.1, 4.2.5.1, 5.0.0.beta1.1
  • HighCVE-2016-6317GHSA-pr3r-4wrp-r2pv24 Oct 2017

    ActiveRecord in Ruby on Rails allows database-query bypass

    Affected
    >=4.2.0 <4.2.7.1
    Fixed in
    4.2.7.1

Is your activerecord version vulnerable?

Which of your client projects still run an old activerecord?

NPMscan reads the Gemfile.lock in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other RubyGems packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the RubyGems registry.