Bug 2108997 (CVE-2022-32224) - CVE-2022-32224 activerecord: Possible RCE escalation bug with Serialized Columns in Active Record
Summary: CVE-2022-32224 activerecord: Possible RCE escalation bug with Serialized Colu...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2022-32224
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2109055 2110507 2110508 2166740
Blocks: 2107212
TreeView+ depends on / blocked
 
Reported: 2022-07-20 09:05 UTC by Borja Tarraso
Modified: 2023-05-03 13:19 UTC (History)
18 users (show)

Fixed In Version: rubygem-activerecord 7.0.3.1, rubygem-activerecord 6.1.6.1, rubygem-activerecord 6.0.5.1, rubygem-activerecord 5.2.8.1
Doc Type: If docs needed, set a value
Doc Text:
An insecure deserialization flaw was found in Active Record, which uses YAML.unsafe_load to convert the YAML data into Ruby objects. An attacker supplying crafted data to the database can perform remote code execution (RCE), resulting in complete system compromise.
Clone Of:
Environment:
Last Closed: 2023-03-07 18:28:20 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2023:0261 0 None None None 2023-01-18 14:53:13 UTC
Red Hat Product Errata RHSA-2023:1151 0 None None None 2023-03-07 19:00:53 UTC
Red Hat Product Errata RHSA-2023:2097 0 None None None 2023-05-03 13:19:28 UTC

Description Borja Tarraso 2022-07-20 09:05:03 UTC
There is a possible escalation to RCE when using YAML serialized columns in Active Record. 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.

Comment 3 errata-xmlrpc 2023-01-18 14:53:12 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.12 for RHEL 8

Via RHSA-2023:0261 https://access.redhat.com/errata/RHSA-2023:0261

Comment 6 errata-xmlrpc 2023-03-07 19:00:51 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.11 for RHEL 8
  Red Hat Satellite 6.11 for RHEL 7

Via RHSA-2023:1151 https://access.redhat.com/errata/RHSA-2023:1151

Comment 9 errata-xmlrpc 2023-05-03 13:19:26 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.13 for RHEL 8

Via RHSA-2023:2097 https://access.redhat.com/errata/RHSA-2023:2097


Note You need to log in before you can comment on or make changes to this bug.