Is activerecord 3.1 vulnerable?

RubyGems · 13 releases from 3.1.0 to 3.1.12 · latest activerecord is 8.1.4.1 · checked 18 Nov 2026

Yes: 6 known advisories

Yes. activerecord 3.1.12, the last 3.1 release, is affected by 6 known security advisories (2 critical, 2 high, 2 medium), including CVE-2022-32224, CVE-2013-3221, CVE-2022-44566. 6 more affect earlier 3.1.x releases. Upgrade to 7.1.5.2 or later to fix all of them.

Upgrade with:bundle update --conservative activerecord # Gemfile: '>= 7.1.5.2'

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

Advisories affecting activerecord 3.1.12

  • 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
  • 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-2014-3482GHSA-mhwp-qhpc-h3jm24 Oct 2017

    SQL Injection in Active Record

    Affected
    >=2.0.0 <3.2.19
    Fixed in
    3.2.19
  • 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

Fixed within 3.1.x, affecting earlier releases

  • 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
  • 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
  • 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

Every activerecord 3.1.x release

Affected: 3.1.0 to 3.1.12. Latest activerecord: 8.1.4.1.

VersionKnown advisories
activerecord 3.1.12CVE-2025-55193, CVE-2022-44566, CVE-2022-32224, CVE-2013-3221, CVE-2014-3482, CVE-2015-7577
activerecord 3.1.11CVE-2025-55193, CVE-2022-44566, CVE-2022-32224, CVE-2013-3221, CVE-2013-1854, CVE-2014-3482, CVE-2015-7577
activerecord 3.1.10CVE-2025-55193, CVE-2022-44566, CVE-2022-32224, CVE-2013-3221, CVE-2013-1854, CVE-2013-0276, CVE-2014-3482, CVE-2015-7577
activerecord 3.1.9CVE-2025-55193, CVE-2022-44566, CVE-2022-32224, CVE-2013-3221, CVE-2013-1854, CVE-2013-0155, CVE-2013-0276, CVE-2014-3482, CVE-2015-7577
activerecord 3.1.8CVE-2025-55193, CVE-2022-44566, CVE-2022-32224, CVE-2013-3221, CVE-2012-6496, CVE-2013-1854, CVE-2013-0155, CVE-2013-0276, CVE-2014-3482, CVE-2015-7577
activerecord 3.1.7CVE-2025-55193, CVE-2022-44566, CVE-2022-32224, CVE-2013-3221, CVE-2012-6496, CVE-2013-1854, CVE-2013-0155, CVE-2013-0276, CVE-2014-3482, CVE-2015-7577
activerecord 3.1.6CVE-2025-55193, CVE-2022-44566, CVE-2022-32224, CVE-2013-3221, CVE-2012-6496, CVE-2013-1854, CVE-2013-0155, CVE-2013-0276, CVE-2014-3482, CVE-2015-7577
activerecord 3.1.5CVE-2025-55193, CVE-2022-44566, CVE-2022-32224, CVE-2013-3221, CVE-2012-2695, CVE-2012-6496, CVE-2013-1854, CVE-2013-0155, CVE-2013-0276, CVE-2014-3482, CVE-2015-7577
activerecord 3.1.4CVE-2025-55193, CVE-2022-44566, CVE-2022-32224, CVE-2013-3221, CVE-2012-2695, CVE-2012-2661, CVE-2012-6496, CVE-2013-1854, CVE-2013-0155, CVE-2013-0276, CVE-2014-3482, CVE-2015-7577
activerecord 3.1.3CVE-2025-55193, CVE-2022-44566, CVE-2022-32224, CVE-2013-3221, CVE-2012-2695, CVE-2012-2661, CVE-2012-6496, CVE-2013-1854, CVE-2013-0155, CVE-2013-0276, CVE-2014-3482, CVE-2015-7577
activerecord 3.1.2CVE-2025-55193, CVE-2022-44566, CVE-2022-32224, CVE-2013-3221, CVE-2012-2695, CVE-2012-2661, CVE-2012-6496, CVE-2013-1854, CVE-2013-0155, CVE-2013-0276, CVE-2014-3482, CVE-2015-7577
activerecord 3.1.1CVE-2025-55193, CVE-2022-44566, CVE-2022-32224, CVE-2013-3221, CVE-2012-2695, CVE-2012-2661, CVE-2012-6496, CVE-2013-1854, CVE-2013-0155, CVE-2013-0276, CVE-2014-3482, CVE-2015-7577
activerecord 3.1.0CVE-2025-55193, CVE-2022-44566, CVE-2022-32224, CVE-2013-3221, CVE-2012-2695, CVE-2012-2661, CVE-2012-6496, CVE-2013-1854, CVE-2013-0155, CVE-2013-0276, CVE-2014-3482, CVE-2015-7577

Which of your client projects are still on activerecord 3.1?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact activerecord version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other activerecord versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the RubyGems registry. Refreshed daily.