Is activerecord 5.1 vulnerable?
RubyGems · 10 releases from 5.1.0 to 5.1.7 · latest activerecord is 8.1.4.1 · checked 18 Nov 2026
Yes: 4 known advisories
Yes. activerecord 5.1.7, the last 5.1 release, is affected by 4 known security advisories (1 critical, 2 high, 1 medium), including CVE-2022-32224, CVE-2022-44566, CVE-2021-22880. Upgrade to 7.1.5.2 or later to fix all of them.
bundle update --conservative activerecord # Gemfile: '>= 7.1.5.2'Is your project on an affected activerecord?
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 5.1.7
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
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
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
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
Every activerecord 5.1.x release
Affected: 5.1.0 to 5.1.7. Latest activerecord: 8.1.4.1.
| Version | Known advisories |
|---|---|
| activerecord 5.1.7 | CVE-2025-55193, CVE-2022-44566, CVE-2022-32224, CVE-2021-22880 |
| activerecord 5.1.6.2 | CVE-2025-55193, CVE-2022-44566, CVE-2022-32224, CVE-2021-22880 |
| activerecord 5.1.6.1 | CVE-2025-55193, CVE-2022-44566, CVE-2022-32224, CVE-2021-22880 |
| activerecord 5.1.6 | CVE-2025-55193, CVE-2022-44566, CVE-2022-32224, CVE-2021-22880 |
| activerecord 5.1.5 | CVE-2025-55193, CVE-2022-44566, CVE-2022-32224, CVE-2021-22880 |
| activerecord 5.1.4 | CVE-2025-55193, CVE-2022-44566, CVE-2022-32224, CVE-2021-22880 |
| activerecord 5.1.3 | CVE-2025-55193, CVE-2022-44566, CVE-2022-32224, CVE-2021-22880 |
| activerecord 5.1.2 | CVE-2025-55193, CVE-2022-44566, CVE-2022-32224, CVE-2021-22880 |
| activerecord 5.1.1 | CVE-2025-55193, CVE-2022-44566, CVE-2022-32224, CVE-2021-22880 |
| activerecord 5.1.0 | CVE-2025-55193, CVE-2022-44566, CVE-2022-32224, CVE-2021-22880 |
Which of your client projects are still on activerecord 5.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.