CVE-2022-32224
CRITICAL 9.8CVSS 3.1Active Record RCE bug with Serialized Columns
A possible escalation to RCE vulnerability exists when using YAML serialized columns in Active Record < 7.0.3.1, <6.1.6.1, <6.0.5.1 and <5.2.8.1 which could allow an attacker, that can manipulate data in the database (via means like SQL injection), the ability to escalate to an RCE.
- Published
- 5 Dec 2022
- Last modified
- 8 Jul 2026
- Assigned by
- support@hackerone.com
- NVD status
- Modified
- Weakness
- CWE-502
- Also known as
- GHSA-3hhc-qp5v-9p2j
- Sources
- NVDJSONOSV GHSA-3hhc-qp5v-9p2jJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | activerecord_project | activerecordcpe:2.3:a:activerecord_project:activerecord:*:*:*:*:*:ruby:*:* |
< 5.2.8.1 | 5.2.8.1 |
| NVD | activerecord_project | activerecordcpe:2.3:a:activerecord_project:activerecord:*:*:*:*:*:ruby:*:* |
>= 6.0.0, < 6.0.5.1 | 6.0.5.1 |
| NVD | activerecord_project | activerecordcpe:2.3:a:activerecord_project:activerecord:*:*:*:*:*:ruby:*:* |
>= 6.1.0, < 6.1.6.1 | 6.1.6.1 |
| NVD | activerecord_project | activerecordcpe:2.3:a:activerecord_project:activerecord:*:*:*:*:*:ruby:*:* |
>= 7.0.0, < 7.0.3.1 | 7.0.3.1 |
| OSV | RubyGems | activerecord | >= 7.0.0, < 7.0.3.1 | 7.0.3.1 |
| OSV | RubyGems | activerecord | >= 6.1.0, < 6.1.6.1 | 6.1.6.1 |
| OSV | RubyGems | activerecord | >= 6.0.0, < 6.0.5.1 | 6.0.5.1 |
| OSV | RubyGems | activerecord | < 5.2.8.1 | 5.2.8.1 |
References
- https://github.com/advisories/GHSA-3hhc-qp5v-9p2j · Patch, Third Party Advisory, ADVISORY
- https://groups.google.com/g/rubyonrails-security/c/MmFO3LYQE8U · Exploit, Mailing List, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2026/05/msg00022.html · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-32224 · ADVISORY
- https://github.com/rails/rails/commit/611990f1a6c137c2d56b1ba06b27e5d2434dcd6a · WEB
- https://discuss.rubyonrails.org/t/cve-2022-32224-possible-rce-escalation-bug-with-serialized-columns-in-active-record/81017 · WEB
- https://github.com/rails/rails/commits/main/activerecord · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2022-32224.yml · WEB
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 5 Dec 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 12 Jul 2022)