GMS-2022-3029: Duplicate of ./gem/activerecord/CVE-2022-32224.yml
(updated )
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.
References
- discuss.rubyonrails.org/t/cve-2022-32224-possible-rce-escalation-bug-with-serialized-columns-in-active-record/81017
- github.com/advisories/GHSA-3hhc-qp5v-9p2j
- github.com/rails/rails/commit/611990f1a6c137c2d56b1ba06b27e5d2434dcd6a
- github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2022-32224.yml
- groups.google.com/g/rubyonrails-security/c/MmFO3LYQE8U
- nvd.nist.gov/vuln/detail/CVE-2022-32224
Detect and mitigate GMS-2022-3029 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →