Ruby/activerecord/5.2.7.1
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.
https://rubygems.org/gems/activerecord
MIT
2 Security Vulnerabilities
Active Record RCE bug with Serialized Columns
- https://nvd.nist.gov/vuln/detail/CVE-2022-32224
- https://github.com/rails/rails/commit/611990f1a6c137c2d56b1ba06b27e5d2434dcd6a
- https://discuss.rubyonrails.org/t/cve-2022-32224-possible-rce-escalation-bug-with-serialized-columns-in-active-record/81017
- https://github.com/advisories/GHSA-3hhc-qp5v-9p2j
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2022-32224.yml
- https://groups.google.com/g/rubyonrails-security/c/MmFO3LYQE8U
When serialized columns that use YAML (the default) are deserialized, Rails uses YAML.unsafe_load to convert the YAML data in to Ruby objects. If an attacker can manipulate data in the database (via means like SQL injection), then it may be possible for the attacker to escalate to an RCE.
There are no feasible workarounds for this issue, but other coders (such as JSON) are not impacted.
Denial of Service Vulnerability in ActiveRecord's PostgreSQL adapter
- https://github.com/rails/rails/releases/tag/v7.0.4.1
- https://github.com/advisories/GHSA-579w-22j4-4749
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2022-44566.yml
- https://rubyonrails.org/2023/1/17/Rails-Versions-6-0-6-1-6-1-7-1-7-0-4-1-have-been-released
- https://nvd.nist.gov/vuln/detail/CVE-2022-44566
- https://code.jeremyevans.net/2022-11-01-forcing-sequential-scans-on-postgresql.html
- https://discuss.rubyonrails.org/t/cve-2022-44566-possible-denial-of-service-vulnerability-in-activerecords-postgresql-adapter/82119
- https://github.com/rails/rails/commit/4f44aa9d514e701ada92b5cf08beccf566eeaebf
- https://github.com/rails/rails/commit/82bcdc011e2ff674e7dd8fd8cee3a831c908d29b
- https://github.com/rails/rails/releases/tag/v6.1.7.1
- https://makandracards.com/railslts/508019-rails-5-2-lts-changelog#section-jan-20th-2023-rails-version-5-2-8-15
There is a potential denial of service vulnerability present in ActiveRecord’s PostgreSQL adapter.
This has been assigned the CVE identifier CVE-2022-44566.
Versions Affected: All. Not affected: None. Fixed Versions: 5.2.8.15 (Rails LTS, which is a paid service and not part of the rubygem), 6.1.7.1, 7.0.4.1
Impact: In ActiveRecord <7.0.4.1 and <6.1.7.1, when a value outside the range for a 64bit signed integer is provided to the PostgreSQL connection adapter, it will treat the target column type as numeric. Comparing integer values against numeric values can result in a slow sequential scan resulting in potential Denial of Service. Releases
The fixed releases are available at the normal locations. Workarounds
Ensure that user supplied input which is provided to ActiveRecord clauses do not contain integers wider than a signed 64bit representation or floats. Patches
To aid users who aren’t able to upgrade immediately we have provided patches for the supported release series in accordance with our maintenance policy 1 regarding security issues. They are in git-am format and consist of a single changeset.
6-1-Added-integer-width-check-to-PostgreSQL-Quoting.patch - Patch for 6.1 series
7-0-Added-integer-width-check-to-PostgreSQL-Quoting.patch - Patch for 7.0 series
489 Other Versions
Version | License | Security | Released | |
---|---|---|---|---|
6.0.4.3 | MIT | 4 | 2021-12-14 - 23:00 | almost 3 years |
6.0.4.2 | MIT | 4 | 2021-12-14 - 20:10 | almost 3 years |
6.0.4.1 | MIT | 4 | 2021-08-19 - 16:19 | about 3 years |
6.0.4 | MIT | 4 | 2021-06-15 - 20:14 | over 3 years |
6.0.3.7 | MIT | 4 | 2021-05-05 - 16:01 | over 3 years |
6.0.3.6 | MIT | 4 | 2021-03-26 - 17:32 | over 3 years |
6.0.3.5 | MIT | 4 | 2021-02-10 - 20:39 | almost 4 years |
6.0.3.4 | MIT | 5 | 2020-10-07 - 16:50 | about 4 years |
6.0.3.3 | MIT | 5 | 2020-09-09 - 18:19 | about 4 years |
6.0.3.2 | MIT | 5 | 2020-06-17 - 14:54 | over 4 years |
6.0.3.1 | MIT | 5 | 2020-05-18 - 15:46 | over 4 years |
6.0.3 | MIT | 5 | 2020-05-06 - 18:04 | over 4 years |
6.0.3.rc1 | MIT | 5 | 2020-05-01 - 17:17 | over 4 years |
6.0.2.2 | MIT | 5 | 2020-03-19 - 16:43 | over 4 years |
6.0.2.1 | MIT | 5 | 2019-12-18 - 19:08 | almost 5 years |
6.0.2 | MIT | 5 | 2019-12-13 - 18:19 | almost 5 years |
6.0.2.rc2 | MIT | 5 | 2019-12-09 - 16:11 | almost 5 years |
6.0.2.rc1 | MIT | 5 | 2019-11-27 - 15:10 | almost 5 years |
6.0.1 | MIT | 5 | 2019-11-05 - 14:38 | about 5 years |
6.0.1.rc1 | MIT | 5 | 2019-10-31 - 20:04 | about 5 years |
6.0.0 | MIT | 5 | 2019-08-16 - 17:59 | about 5 years |
6.0.0.rc2 | MIT | 2 | 2019-07-22 - 21:09 | over 5 years |
6.0.0.rc1 | MIT | 2 | 2019-04-24 - 18:49 | over 5 years |
6.0.0.beta3 | MIT | 2 | 2019-03-13 - 17:02 | over 5 years |
6.0.0.beta2 | MIT | 2 | 2019-02-25 - 22:45 | over 5 years |
6.0.0.beta1 | MIT | 2 | 2019-01-18 - 20:43 | almost 6 years |
5.2.8.1 | MIT | 1 | 2022-07-12 - 17:26 | over 2 years |
5.2.8 | MIT | 2 | 2022-05-09 - 13:58 | over 2 years |
5.2.7.1 | MIT | 2 | 2022-04-26 - 19:23 | over 2 years |
5.2.7 | MIT | 2 | 2022-03-11 - 00:00 | over 2 years |
5.2.6.3 | MIT | 2 | 2022-03-08 - 17:45 | over 2 years |
5.2.6.2 | MIT | 2 | 2022-02-11 - 19:37 | almost 3 years |
5.2.6.1 | MIT | 2 | 2022-02-11 - 18:38 | almost 3 years |
5.2.6 | MIT | 2 | 2021-05-05 - 17:03 | over 3 years |
5.2.5 | MIT | 2 | 2021-03-26 - 17:17 | over 3 years |
5.2.4.6 | MIT | 2 | 2021-05-05 - 15:28 | over 3 years |
5.2.4.5 | MIT | 2 | 2021-02-10 - 20:34 | almost 4 years |
5.2.4.4 | MIT | 3 | 2020-09-09 - 18:36 | about 4 years |
5.2.4.3 | MIT | 3 | 2020-05-18 - 15:42 | over 4 years |
5.2.4.2 | MIT | 3 | 2020-03-19 - 16:31 | over 4 years |
5.2.4.1 | MIT | 3 | 2019-12-18 - 19:01 | almost 5 years |
5.2.4 | MIT | 3 | 2019-11-27 - 15:45 | almost 5 years |
5.2.4.rc1 | MIT | 3 | 2019-11-23 - 00:26 | almost 5 years |
5.2.3 | MIT | 3 | 2019-03-28 - 03:00 | over 5 years |
5.2.3.rc1 | MIT | 3 | 2019-03-22 - 03:34 | over 5 years |
5.2.2.1 | MIT | 3 | 2019-03-13 - 16:47 | over 5 years |
5.2.2 | MIT | 3 | 2018-12-04 - 18:12 | almost 6 years |
5.2.2.rc1 | MIT | 3 | 2018-11-28 - 22:52 | almost 6 years |
5.2.1.1 | MIT | 3 | 2018-11-27 - 20:12 | almost 6 years |
5.2.1 | MIT | 3 | 2018-08-07 - 21:43 | over 6 years |
5.2.1.rc1 | MIT | 3 | 2018-07-30 - 20:14 | over 6 years |
5.2.0 | MIT | 3 | 2018-04-09 - 20:05 | over 6 years |
5.2.0.rc2 | MIT | 3 | 2018-03-20 - 17:50 | over 6 years |
5.2.0.rc1 | MIT | 3 | 2018-01-30 - 23:36 | almost 7 years |
5.2.0.beta2 | MIT | 3 | 2017-11-28 - 05:02 | almost 7 years |
5.2.0.beta1 | MIT | 3 | 2017-11-27 - 18:03 | almost 7 years |
5.1.7 | MIT | 6 | 2019-03-28 - 02:47 | over 5 years |
5.1.7.rc1 | MIT | 6 | 2019-03-22 - 04:12 | over 5 years |
5.1.6.2 | MIT | 6 | 2019-03-13 - 16:45 | over 5 years |
5.1.6.1 | MIT | 6 | 2018-11-27 - 20:10 | almost 6 years |
5.1.6 | MIT | 6 | 2018-03-29 - 18:27 | over 6 years |
5.1.5 | MIT | 6 | 2018-02-14 - 19:54 | over 6 years |
5.1.5.rc1 | MIT | 6 | 2018-02-01 - 18:58 | almost 7 years |
5.1.4 | MIT | 6 | 2017-09-08 - 00:50 | about 7 years |
5.1.4.rc1 | MIT | 6 | 2017-08-24 - 19:36 | about 7 years |
5.1.3 | MIT | 6 | 2017-08-03 - 19:13 | over 7 years |
5.1.3.rc3 | MIT | 6 | 2017-07-31 - 19:11 | over 7 years |
5.1.3.rc2 | MIT | 6 | 2017-07-25 - 20:16 | over 7 years |
5.1.3.rc1 | MIT | 6 | 2017-07-19 - 19:31 | over 7 years |
5.1.2 | MIT | 6 | 2017-06-26 - 21:50 | over 7 years |
5.1.2.rc1 | MIT | 6 | 2017-06-20 - 17:02 | over 7 years |
5.1.1 | MIT | 6 | 2017-05-12 - 20:10 | over 7 years |
5.1.0 | MIT | 6 | 2017-04-27 - 20:59 | over 7 years |
5.1.0.rc2 | MIT | 6 | 2017-04-21 - 01:29 | over 7 years |
5.1.0.rc1 | MIT | 6 | 2017-03-20 - 18:56 | over 7 years |
5.1.0.beta1 | MIT | 6 | 2017-02-23 - 19:55 | over 7 years |
5.0.7.2 | MIT | 6 | 2019-03-13 - 16:40 | over 5 years |
5.0.7.1 | MIT | 6 | 2018-11-27 - 20:08 | almost 6 years |
5.0.7 | MIT | 6 | 2018-03-29 - 17:58 | over 6 years |
5.0.6 | MIT | 6 | 2017-09-08 - 00:46 | about 7 years |
5.0.6.rc1 | MIT | 6 | 2017-08-24 - 19:10 | about 7 years |
5.0.5 | MIT | 6 | 2017-07-31 - 19:04 | over 7 years |
5.0.5.rc2 | MIT | 6 | 2017-07-25 - 20:24 | over 7 years |
5.0.5.rc1 | MIT | 6 | 2017-07-19 - 19:42 | over 7 years |
5.0.4 | MIT | 6 | 2017-06-19 - 21:57 | over 7 years |
5.0.4.rc1 | MIT | 6 | 2017-06-14 - 20:48 | over 7 years |
5.0.3 | MIT | 6 | 2017-05-12 - 20:03 | over 7 years |
5.0.2 | MIT | 6 | 2017-03-01 - 23:12 | over 7 years |
5.0.2.rc1 | MIT | 6 | 2017-02-25 - 00:54 | over 7 years |
5.0.1 | MIT | 6 | 2016-12-21 - 00:06 | almost 8 years |
5.0.1.rc2 | MIT | 6 | 2016-12-09 - 19:12 | almost 8 years |
5.0.1.rc1 | MIT | 6 | 2016-11-30 - 20:01 | almost 8 years |
5.0.0.1 | MIT | 6 | 2016-08-11 - 17:33 | over 8 years |
5.0.0 | MIT | 6 | 2016-06-30 - 21:21 | over 8 years |
5.0.0.rc2 | MIT | 5 | 2016-06-22 - 20:02 | over 8 years |
5.0.0.rc1 | MIT | 5 | 2016-05-06 - 21:56 | over 8 years |
5.0.0.beta4 | MIT | 5 | 2016-04-27 - 20:54 | over 8 years |
5.0.0.beta3 | MIT | 5 | 2016-02-24 - 16:15 | over 8 years |
5.0.0.beta2 | MIT | 5 | 2016-02-01 - 22:05 | almost 9 years |
5.0.0.beta1.1 | MIT | 5 | 2016-01-25 - 19:25 | almost 9 years |