RubyGems (Ruby)Worst: Critical26 advisories

activerecord: known vulnerabilities

activerecord has 26 reviewed security advisories in the GitHub Advisory Database — 3 critical, 13 high, 10 moderate. The most recent was published 2025-08-13. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the activerecord versions running across your servers, containers and images, and ranks what to patch first.

How to fix activerecord

Upgrade activerecord to a release at or above the fixed version shown for each advisory below. For RubyGems (Ruby):

bundle update activerecord to 7.1.5.2 (or gem install activerecord -v 7.1.5.2)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (26)

Active Record logging vulnerable to ANSI escape injection Moderate CWE-150 — Affected: before 7.1.5.2. Fixed in 7.1.5.2. Published 2025-08-13. GHSA-76r7-hhxj-r776 · CVE-2025-55193
Denial of Service Vulnerability in ActiveRecord's PostgreSQL adapter High 7.5 CWE-400 — Affected: from 7.0.0 up to 7.0.4.1. Fixed in 7.0.4.1. Published 2023-02-09. GHSA-579w-22j4-4749 · CVE-2022-44566
SQL Injection Vulnerability via ActiveRecord comments High 8.8 CWE-89 — Affected: from 7.0.0 up to 7.0.4.1. Fixed in 7.0.4.1. Published 2023-02-09. GHSA-hq7p-j377-6v63 · CVE-2023-22794
Active Record RCE bug with Serialized Columns Critical 9.8 CWE-502 — Affected: before 5.2.8.1. Fixed in 5.2.8.1. Published 2022-12-05. GHSA-3hhc-qp5v-9p2j · CVE-2022-32224
Active Record subject to Regular Expression Denial-of-Service (ReDoS) High 7.5 CWE-400 — Affected: from 6.1.0 up to 6.1.2.1. Fixed in 6.1.2.1. Published 2021-02-11. GHSA-8hc4-xxm3-5ppp · CVE-2021-22880
Moderate severity vulnerability that affects activerecord Moderate — Affected: from 3.0.0 up to 3.2.22.1. Fixed in 3.2.22.1. Published 2018-09-17. GHSA-7phj-gmgx-2r66
High severity vulnerability that affects activerecord High — Affected: from 4.1.0 up to 4.1.5. Fixed in 4.1.5. Published 2018-08-21. GHSA-hm48-76wh-q86v
Moderate severity vulnerability that affects activerecord Moderate — Affected: from 4.2.0 up to 4.2.7.1. Fixed in 4.2.7.1. Published 2018-08-13. GHSA-m8h6-m9p5-p2f8
Rails activerecord gem has Improper Input Validation vulnerability Moderate CWE-20 — Affected: from 3.0.0 up to 3.0.1. Fixed in 3.0.1. Published 2017-10-24. GHSA-gjxw-5w2q-7grf · CVE-2010-3933
Active Record allows bypassing of database-query restrictions Moderate CWE-284 — Affected: from 3.2.0 up to 3.2.11. Fixed in 3.2.11. Published 2017-10-24. GHSA-gppp-5xc5-wfpx · CVE-2013-0155
ActiveRecord in Ruby on Rails allows database-query bypass High 7.5 CWE-284 CWE-476 — Affected: from 4.2.0 up to 4.2.7.1. Fixed in 4.2.7.1. Published 2017-10-24. GHSA-pr3r-4wrp-r2pv · CVE-2016-6317
Active Record Improper Access Control Moderate 5.3 CWE-284 — Affected: from 5.0.0.beta1 up to 5.0.0.beta1.1. Fixed in 5.0.0.beta1.1. Published 2017-10-24. GHSA-xrr6-3pc4-m447 · CVE-2015-7577
Active Record subject to strong parameters protection bypass High CWE-284 — Affected: from 4.1.0 up to 4.1.5. Fixed in 4.1.5. Published 2014-08-20. GHSA-9rf5-jm6f-2fmm · CVE-2014-3514
Active Record contains SQL Injection via improper range quoting High CWE-89 — Affected: from 4.1.0 up to 4.1.3. Fixed in 4.1.3. Published 2014-07-07. GHSA-r8fh-hq2p-7qhq · CVE-2014-3483
Array data injection vulnerability in activerecord Moderate CWE-89 — Affected: from 4.1.0.beta1 up to 4.1.0.beta2. Fixed in 4.1.0.beta2. Published 2014-02-20. GHSA-hqf9-rc9j-5fmj · CVE-2014-0080
Active Record component in Ruby on Rails has a data-type injection vulnerability Critical CWE-20 CWE-89 — Affected: before 4.2.0. Fixed in 4.2.0. Published 2013-04-22. GHSA-f57c-hx33-hvh8 · CVE-2013-3221
Active Record Improper Input Validation Moderate CWE-20 — Affected: from 3.2.0 up to 3.2.13. Fixed in 3.2.13. Published 2013-03-19. GHSA-3crr-9vmg-864v · CVE-2013-1854
Active Record contains deserialization of arbitrary YAML Critical CWE-502 — Affected: from 3.0.0 up to 3.1.0. Fixed in 3.1.0. Published 2013-02-13. GHSA-fhj9-cjjh-27vm · CVE-2013-0277
ActiveRecord vulnerable to modification of protected model attributes Moderate CWE-284 — Affected: from 3.2.0 up to 3.2.12. Fixed in 3.2.12. Published 2013-02-13. GHSA-gr44-7grc-37vq · CVE-2013-0276
Active Record vulnerable to SQL Injection via nested query parameters Moderate CWE-89 — Affected: from 3.2.0 up to 3.2.4. Fixed in 3.2.4. Published 2012-06-22. GHSA-fh39-v733-mxfr · CVE-2012-2661
activerecord vulnerable to SQL Injection High CWE-89 — Affected: from 3.1.0.beta1 up to 3.1.0.rc5. Fixed in 3.1.0.rc5. Published 2011-08-29. GHSA-h6w6-xmqv-7q78 · CVE-2011-2930
activerecord vulnerable to SQL Injection High CWE-89 — Affected: from 3.0.0 up to 3.0.4. Fixed in 3.0.4. Published 2011-02-21. GHSA-jmm9-2p29-vh2w · CVE-2011-0448
Rails ActiveRecord gem vulnerable to SQL injection High CWE-89 — Affected: before 2.1.1. Fixed in 2.1.1. Published 2008-09-30. GHSA-xf96-32q2-9rw2 · CVE-2008-4094

Find activerecord across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.