VDB
Sign up
CRITICAL9.8

GHSA-3hhc-qp5v-9p2j

Active Record RCE bug with Serialized Columns

Quick fix

GHSA-3hhc-qp5v-9p2j — activerecord: upgrade to the fixed version with the command below.

bundle update activerecord

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

RubyGems/activerecord
Introduced in: 7.0.0Fixed in: 7.0.3.1
Fixbundle update activerecord
RubyGems/activerecord
Introduced in: 6.1.0Fixed in: 6.1.6.1
Fixbundle update activerecord
RubyGems/activerecord
Introduced in: 6.0.0Fixed in: 6.0.5.1
Fixbundle update activerecord
RubyGems/activerecord
Introduced in: 0Fixed in: 5.2.8.1
Fixbundle update activerecord

References