# CVE-2022-32224: Active Record RCE bug with Serialized Columns

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.74%, higher than 87% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-07-12T19:39:47.000Z
- Modified: 2026-07-08T06:29:07.745Z
- Also known as: GHSA-3hhc-qp5v-9p2j
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: hackerone

## Description

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.

(As written by CVE List.)

## Affected

- https://github.com/rails/rails: 7.0.3.1, 6.1.6.1, 6.0.5.1, 5.2.8.1
- activerecord (RubyGems): from 7.0.0 before 7.0.3.1; from 6.1.0 before 6.1.6.1; from 6.0.0 before 6.0.5.1; before 5.2.8.1
- activerecord_project activerecord: before 5.2.8.1; from 6.0.0 before 6.0.5.1; from 6.1.0 before 6.1.6.1; from 7.0.0 before 7.0.3.1

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://groups.google.com/g/rubyonrails-security/c/MmFO3LYQE8U> (exploit, mailing-list, third-party-advisory, web)
- <https://github.com/advisories/GHSA-3hhc-qp5v-9p2j> (advisory, patch, third-party-advisory)
- <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)

## Sources

- CVE List: [CVE-2022-32224](https://www.cve.org/CVERecord?id=CVE-2022-32224), CVE Terms of Use, modified 2026-05-11
- GitHub Advisory Database: [GHSA-3hhc-qp5v-9p2j](https://github.com/advisories/GHSA-3hhc-qp5v-9p2j), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2022-32224](https://nvd.nist.gov/vuln/detail/CVE-2022-32224), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-32224 · Whole record: https://cve.day/CVE-2022-32224.json · Rebuilt by cve.day 2026-11-25T22:58:17.233Z
