GHSA-3hhc-qp5v-9p2jCriticalCVSS 9.8

Active Record RCE bug with Serialized Columns

Published
July 12, 2022
Last Modified
May 11, 2026

🔗 CVE IDs covered (1)

📋 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.

🎯 Affected products4

  • rubygems/activerecord:>= 7.0.0, <= 7.0.3
  • rubygems/activerecord:>= 6.1.0, <= 6.1.6
  • rubygems/activerecord:>= 6.0.0, <= 6.0.5
  • rubygems/activerecord:<= 5.2.8

🔗 References (7)