PT-2022-21161 · Ruby+4 · Ruby On Rails+4
Elebow
·
Published
2022-07-12
·
Updated
2025-09-29
·
CVE-2022-32224
CVSS v3.1
9.8
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Ruby on Rails versions prior to 7.0.3.1
Ruby on Rails versions prior to 6.1.6.1
Ruby on Rails versions prior to 6.0.5.1
Ruby on Rails versions prior to 5.2.8.1
Description
A possible escalation to remote code execution (RCE) exists when using YAML serialized columns in Active Record. This could allow an attacker who can manipulate data in the database, via means like SQL injection, to escalate to an RCE. The issue arises when serialized columns that use YAML are deserialized, and Rails uses
YAML.unsafe load to convert the YAML data into Ruby objects.Recommendations
For versions prior to 7.0.3.1, update to version 7.0.3.1 or later.
For versions prior to 6.1.6.1, update to version 6.1.6.1 or later.
For versions prior to 6.0.5.1, update to version 6.0.5.1 or later.
For versions prior to 5.2.8.1, update to version 5.2.8.1 or later.
Exploit
Fix
RCE
Deserialization of Untrusted Data
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Astra Linux
Debian
Rocky Linux
Ruby On Rails