All reports
Critical

Active Record RCE bug with Serialized Columns

Affected versions

Affected versions
>= 6.0.0, <= 6.0.5
Fixed version
6.0.5.1
Affected versions
>= 7.0.0, <= 7.0.3
Fixed version
7.0.3.1
Affected versions
<= 5.2.8
Fixed version
5.2.8.1
Affected versions
>= 6.1.0, <= 6.1.6
Fixed version
6.1.6.1

Exploitation

CVE-2022-32224

Probability of exploitation in the next 30 days: 2.61%

FIRST EPSS · 2026-11-22

Description

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.

Links