NetSight
critical9.8

CVE-2022-32224

Active Record RCE bug with Serialized Columns

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. There are no feasible workarounds for this issue, but other coders (such as JSON) are not impacted.

Affected packages

EcosystemPackageAffectedFixed in
rubygemsactiverecord>= 7.0.0, <= 7.0.37.0.3.1

Affected products

VendorProductAffected versions
Activerecord ProjectActiverecord
before 5.2.8.1
from 6.0.0 before 6.0.5.1
from 6.1.0 before 6.1.6.1
from 7.0.0 before 7.0.3.1

Weakness classification

References