Vulnerabilities / CVE-2022-32224

critical

CVE-2022-32224

activerecord: Possible RCE escalation bug with Serialized Columns in Active Record

Published Modified CWE 502
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat9.0CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, GHSA, Red Hat, Ruby Advisory DB.

Description

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.

Affected packages and fixed versions

SourcePackageFixed in
Red Hattfm-rubygem-activerecordno fix listed
rubygems::GitHub Security Advisory RubyGemsactiverecord7.0.3.1, 6.1.6.1, 6.0.5.1, 5.2.8.1
rubygems::Ruby Advisory Databaseactiverecord~> 5.2.8, >= 5.2.8.1, ~> 6.0.5, >= 6.0.5.1, ~> 6.1.6, >= 6.1.6.1, >= 7.0.3.1
debian 11rails2:6.0.3.7+dfsg-2+deb11u5
debian 12rails2:6.1.6.1+dfsg-1
debian 13rails2:6.1.6.1+dfsg-1
debian 14rails2:6.1.6.1+dfsg-1
echorails2:6.1.6.1+dfsg-1
seal Red Hat 7python-jinja2, seal-python-jinja22.7.2-4.el7+sp999
seal Red Hat 8libsolv, seal-libsolv0.7.20-6.el8+sp999
Show all 12 entries from 10 sources
SourcePackageFixed in
Red Hattfm-rubygem-activerecordno fix listed
rubygems::GitHub Security Advisory RubyGemsactiverecord7.0.3.1, 6.1.6.1, 6.0.5.1, 5.2.8.1
rubygems::Ruby Advisory Databaseactiverecord~> 5.2.8, >= 5.2.8.1, ~> 6.0.5, >= 6.0.5.1, ~> 6.1.6, >= 6.1.6.1, >= 7.0.3.1
debian 11rails2:6.0.3.7+dfsg-2+deb11u5
debian 12rails2:6.1.6.1+dfsg-1
debian 13rails2:6.1.6.1+dfsg-1
debian 14rails2:6.1.6.1+dfsg-1
echorails2:6.1.6.1+dfsg-1
seal Red Hat 7python-jinja22.7.2-4.el7+sp999
seal Red Hat 7seal-python-jinja22.7.2-4.el7+sp999
seal Red Hat 8libsolv0.7.20-6.el8+sp999
seal Red Hat 8seal-libsolv0.7.20-6.el8+sp999

References

All 10 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.