Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:gem/activerecord@6.1.5.1
purl pkg:gem/activerecord@6.1.5.1
Next non-vulnerable version 7.1.5.2
Latest non-vulnerable version 8.0.2.1
Risk 4.5
Vulnerabilities affecting this package (4)
Vulnerability Summary Fixed by
VCID-aqs7-rhz9-qfgw
Aliases:
CVE-2022-32224
GHSA-3hhc-qp5v-9p2j
GMS-2022-3029
Possible RCE escalation bug with Serialized Columns in Active Record There is a possible escalation to RCE when using YAML serialized columns in Active Record. This vulnerability has been assigned the CVE identifier CVE-2022-32224. Versions Affected: All. Not affected: None Fixed Versions: 7.0.3.1, 6.1.6.1, 6.0.5.1, 5.2.8.1 Impact ------ 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. Impacted Active Record models will look something like this: ```ruby class User < ApplicationRecord serialize :options # Vulnerable: Uses YAML for serialization serialize :values, Array # Vulnerable: Uses YAML for serialization serialize :values, JSON # Not vulnerable end ``` All users running an affected release should either upgrade or use one of the workarounds immediately. Releases -------- The FIXED releases are available at the normal locations. The released versions change the default YAML deserializer to use `YAML.safe_load`, which prevents deserialization of possibly dangerous objects. This may introduce backwards compatibility issues with existing data. In order to cope with that situation, the released version also contains two new Active Record configuration options. The configuration options are as follows: * `config.active_record.use_yaml_unsafe_load` When set to true, this configuration option tells Rails to use the old "unsafe" YAML loading strategy, maintaining the existing behavior but leaving the possible escalation vulnerability in place. Setting this option to true is *not* recommended, but can aid in upgrading. * `config.active_record.yaml_column_permitted_classes` The "safe YAML" loading method does not allow all classes to be deserialized by default. This option allows you to specify classes deemed "safe" in your application. For example, if your application uses Symbol and Time in serialized data, you can add Symbol and Time to the allowed list as follows: ``` config.active_record.yaml_column_permitted_classes = [Symbol, Date, Time] ``` Workarounds ----------- There are no feasible workarounds for this issue, but other coders (such as JSON) are not impacted.
6.1.6.1
Affected by 3 other vulnerabilities.
7.0.0.alpha1
Affected by 1 other vulnerability.
7.0.3.1
Affected by 3 other vulnerabilities.
VCID-d29a-3hw6-zffk
Aliases:
CVE-2022-44566
GHSA-579w-22j4-4749
GMS-2023-59
Duplicate This advisory duplicates another.
6.1.7.1
Affected by 1 other vulnerability.
7.0.4.1
Affected by 1 other vulnerability.
VCID-jk1q-2wpk-r7aj
Aliases:
CVE-2023-22794
GHSA-hq7p-j377-6v63
GMS-2023-60
Duplicate This advisory duplicates another.
6.1.7.1
Affected by 1 other vulnerability.
7.0.4.1
Affected by 1 other vulnerability.
VCID-pt1n-pq3j-jbg5
Aliases:
CVE-2025-55193
GHSA-76r7-hhxj-r776
Active Record logging vulnerable to ANSI escape injection This vulnerability has been assigned the CVE identifier CVE-2025-55193 ### Impact The ID passed to `find` or similar methods may be logged without escaping. If this is directly to the terminal, it may include unescaped ANSI sequences. ### Releases The fixed releases are available at the normal locations. ### Credits Thanks to [lio346](https://hackerone.com/lio346) for reporting this vulnerability.
7.1.5.2
Affected by 0 other vulnerabilities.
7.2.0.beta1
Affected by 1 other vulnerability.
7.2.2.2
Affected by 0 other vulnerabilities.
8.0.0.beta1
Affected by 1 other vulnerability.
8.0.2.1
Affected by 0 other vulnerabilities.
Vulnerabilities fixed by this package (0)
Vulnerability Summary Aliases
This package is not known to fix vulnerabilities.

Date Actor Action Vulnerability Source VulnerableCode Version
2026-06-06T05:58:01.069536+00:00 GitLab Importer Affected by VCID-pt1n-pq3j-jbg5 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/gem/activerecord/CVE-2025-55193.yml 38.6.0
2026-06-06T03:27:36.430193+00:00 GitLab Importer Affected by VCID-jk1q-2wpk-r7aj https://gitlab.com/gitlab-org/advisories-community/-/blob/main/gem/activerecord/CVE-2023-22794.yml 38.6.0
2026-06-06T03:24:05.669239+00:00 GitLab Importer Affected by VCID-d29a-3hw6-zffk https://gitlab.com/gitlab-org/advisories-community/-/blob/main/gem/activerecord/CVE-2022-44566.yml 38.6.0
2026-06-06T02:40:52.500950+00:00 GitLab Importer Affected by VCID-aqs7-rhz9-qfgw https://gitlab.com/gitlab-org/advisories-community/-/blob/main/gem/activerecord/CVE-2022-32224.yml 38.6.0
2026-06-05T17:03:44.337280+00:00 GHSA Importer Affected by VCID-aqs7-rhz9-qfgw https://github.com/advisories/GHSA-3hhc-qp5v-9p2j 38.6.0
2026-06-04T18:15:34.843238+00:00 Ruby Importer Affected by VCID-pt1n-pq3j-jbg5 https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2025-55193.yml 38.6.0