Advisory

GHSA-3hhc-qp5v-9p2j

Also known as: CVE-2022-32224

Summary

Active Record RCE bug with Serialized Columns

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-07-12 19:39 UTC
Modified
2026-07-08 06:29 UTC

Affected packages and fixes

activerecord

RubyGems · All systems

Affected

  • introduced 7.0.0, fixed 7.0.3.1 (ecosystem)

Fixed versions

7.0.3.1

Fix

The export has no generic command for this ecosystem.

activerecord

RubyGems · All systems

Affected

  • introduced 6.1.0, fixed 6.1.6.1 (ecosystem)

Fixed versions

6.1.6.1

Fix

The export has no generic command for this ecosystem.

activerecord

RubyGems · All systems

Affected

  • introduced 6.0.0, fixed 6.0.5.1 (ecosystem)

Fixed versions

6.0.5.1

Fix

The export has no generic command for this ecosystem.

activerecord

RubyGems · All systems

Affected

  • introduced 0, fixed 5.2.8.1 (ecosystem)

Fixed versions

5.2.8.1

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences