GHSA-3hhc-qp5v-9p2j
GitHub Security Advisory
Active Record RCE bug with Serialized Columns
✓ GitHub Reviewed
CRITICAL
Has CVE
Advisory 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.
Affected Packages
RubyGems
activerecord
Affected versions:
7.0.0
(fixed in 7.0.3.1)
RubyGems
activerecord
Affected versions:
6.1.0
(fixed in 6.1.6.1)
RubyGems
activerecord
Affected versions:
6.0.0
(fixed in 6.0.5.1)
RubyGems
activerecord
Affected versions:
0
(fixed in 5.2.8.1)
Related CVEs
Key Information
9.0
/10
Dataset
Last updated: July 31, 2025 6:36 AM
Data from GitHub Advisory Database. This information is provided for research and educational purposes.