GHSA-3hhc-qp5v-9p2j

Active Record RCE bug with Serialized Columns

En bref

Publiée
Mise à jour
CVE
CVE-2022-32224
CVSS_V3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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.

Paquets affectés

PaquetVersions
RubyGems · activerecordintroduced 7.0.0, fixed 7.0.3.1
RubyGems · activerecordintroduced 6.1.0, fixed 6.1.6.1
RubyGems · activerecordintroduced 6.0.0, fixed 6.0.5.1
RubyGems · activerecordintroduced 0, fixed 5.2.8.1

Références

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database