cve.bz

CVE-2022-32224 activerecord project activerecord: Deserialization of Untrusted Data

9.8 criticalExploit referenceEPSS 2.6%Fix available

Critical (9.8) in activerecord project activerecord. EPSS 2.6% estimated probability of exploitation activity in the next 30 days. Fixed in activerecord 5.2.8.1, 6.0.5.1, 6.1.6.1.

On this page
A possible escalation to RCE vulnerability exists when using YAML serialized columns in Active Record < 7.0.3.1, <6.1.6.1, <6.0.5.1 and <5.2.8.1 which could allow an attacker, that can manipulate data in the database (via means like SQL injection), the ability to escalate to an RCE.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
2.6% (unchanged from 2.6% a week ago; 2.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 86th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: total, assessed 2025-04-24. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-502 Deserialization of Untrusted Data
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-32224 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-32224?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-32224?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-32224 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
activerecord_project:activerecordbefore 5.2.8.1
activerecord_project:activerecordfrom 6.0.0 before 6.0.5.1
activerecord_project:activerecordfrom 6.1.0 before 6.1.6.1
activerecord_project:activerecordfrom 7.0.0 before 7.0.3.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-3hhc-qp5v-9p2jRubyGemsactiverecord>=7.0.0 <7.0.3.17.0.3.1
GHSA-3hhc-qp5v-9p2jRubyGemsactiverecord>=6.1.0 <6.1.6.16.1.6.1
GHSA-3hhc-qp5v-9p2jRubyGemsactiverecord>=6.0.0 <6.0.5.16.0.5.1
GHSA-3hhc-qp5v-9p2jRubyGemsactiverecord<5.2.8.15.2.8.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11rails2:6.0.3.7+dfsg-2+deb11u5DLA-4578-1
Debian12, 13, 14rails2:6.1.6.1+dfsg-1DEBIAN-CVE-2022-32224
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 5 morerailsno fix listedUBUNTU-CVE-2022-32224
Red Hatsatellite:6.11::el7candlepin, candlepin-selinux0:4.1.19-1.el7satRHSA-2023:1151
Red Hatsatellite:6.11::el7foreman, foreman-cli, foreman-ec2 and 11 more0:3.1.1.26-1.el7satRHSA-2023:1151
Red Hatsatellite:6.11::el7satellite, satellite-cli, satellite-common0:6.11.5-1.el7satRHSA-2023:1151
Red Hatsatellite:6.11::el7tfm-rubygem-activesupport0:6.0.6-1.el7satRHSA-2023:1151
Red Hatsatellite:6.11::el7tfm-rubygem-foreman_rh_cloud0:5.0.44-1.el7satRHSA-2023:1151
Red Hatsatellite:6.11::el7tfm-rubygem-foreman_theme_satellite0:9.0.0.12-1.el7satRHSA-2023:1151
Red Hatsatellite:6.11::el7tfm-rubygem-katello0:4.3.0.52-1.el7satRHSA-2023:1151
Red Hatsatellite:6.11::el7tfm-rubygem-rails, tfm-rubygem-railties, tfm-rubygem-activejob and 9 more0:6.0.6-2.el7satRHSA-2023:1151
Red Hatsatellite:6.11::el7, satellite_capsule:6.11::el7tfm-pulpcore-python-naya, tfm-pulpcore-python3-naya0:1.1.1-1.1.el7pcRHSA-2023:1151
Red Hatsatellite:6.11::el7, satellite_capsule:6.11::el7tfm-pulpcore-python-pulp-container, tfm-pulpcore-python3-pulp-container0:2.9.9-1.el7pcRHSA-2023:1151
Red Hatsatellite:6.11::el7, satellite_capsule:6.11::el7tfm-pulpcore-python-pulpcore, tfm-pulpcore-python3-pulpcore0:3.16.15-1.el7pcRHSA-2023:1151
Red Hatsatellite:6.11::el7, satellite_capsule:6.11::el7tfm-rubygem-smart_proxy_container_gateway0:1.0.7-1.el7satRHSA-2023:1151
241 more for Red Hat in the JSON and on Red Hat's page.
SUSEPackage Hub 15 SP4rubygem-activerecord-5.25.2.3-bp154.2.3.1openSUSE-SU-2023:0009-1
openSUSELeap 15.4rubygem-activerecord-5.25.2.3-bp154.2.3.1openSUSE-SU-2023:0009-1
openSUSETumbleweedruby3.2-rubygem-activerecord-7.07.0.4.3-1.1openSUSE-SU-2024:12879-1
openSUSETumbleweedrubygem-activerecord-7.07.0.3.1-1.1openSUSE-SU-2024:12244-1
openSUSETumbleweedrubygem-activerecord-7.07.0.8.4-1.1openSUSE-SU-2024:14069-1
openSUSETumbleweedrubygem-activerecord-7.07.0.8.6-1.3openSUSE-SU-2025:15112-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Critical.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Satellite 6.11 for RHEL 7tfm-rubygem-activerecord-0:6.0.6-2.el7satFixed 2023-03-07RHSA-2023:1151
Red Hat Satellite 6.11 for RHEL 8tfm-rubygem-activerecord-0:6.0.6-2.el8satFixed 2023-03-07RHSA-2023:1151
Red Hat Satellite 6.12 for RHEL 8tfm-rubygem-activerecord-0:6.0.6-2.el8satFixed 2023-01-18RHSA-2023:0261
Red Hat Satellite 6.13 for RHEL 8tfm-rubygem-activerecord-0:6.1.7-1.el8satFixed 2023-05-03RHSA-2023:2097

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-32224.

Attack patterns (CAPEC)

  • CAPEC-586 Object Injection Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON