{"id":"CVE-2022-32224","aliases":["CVE-2022-32224","GHSA-3hhc-qp5v-9p2j"],"related":[],"kind":"vulnerability","state":"published","title":"Active Record RCE bug with Serialized Columns","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.\n\nThere are no feasible workarounds for this issue, but other coders (such as JSON) are not impacted.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Existe una posible escalada a la vulnerabilidad RCE cuando se utilizan columnas serializadas YAML en Active Record &lt; 7.0.3.1, &lt;6.1.6.1, &lt;6.0.5.1 y &lt;5.2.8.1, lo que podría permitir a un atacante, que puede manipular datos en la base de datos (a través de medios como la inyección SQL), la capacidad de escalar a un RCE.","source":"nvd"}],"published":"2022-07-12T19:39:47.000Z","modified":"2026-07-08T06:29:07.745Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-502"],"affected":[{"ranges":[{"version":"7.0.3.1, 6.1.6.1, 6.0.5.1, 5.2.8.1","status":"affected"}],"product":"https://github.com/rails/rails","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"7.0.0","status":"affected","fixed":"7.0.3.1"}],"ecosystem":"RubyGems","package":"activerecord","purl":"pkg:gem/activerecord","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.1.0","status":"affected","fixed":"6.1.6.1"}],"ecosystem":"RubyGems","package":"activerecord","purl":"pkg:gem/activerecord","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.0.0","status":"affected","fixed":"6.0.5.1"}],"ecosystem":"RubyGems","package":"activerecord","purl":"pkg:gem/activerecord","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.2.8.1"}],"ecosystem":"RubyGems","package":"activerecord","purl":"pkg:gem/activerecord","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"5.2.8.1"},{"status":"affected","introduced":"6.0.0","fixed":"6.0.5.1"},{"status":"affected","introduced":"6.1.0","fixed":"6.1.6.1"},{"status":"affected","introduced":"7.0.0","fixed":"7.0.3.1"}],"vendor":"activerecord_project","product":"activerecord","cpe":"cpe:2.3:a:activerecord_project:activerecord:*:*:*:*:*:ruby:*:*","source":"nvd"}],"references":[{"url":"https://github.com/advisories/GHSA-3hhc-qp5v-9p2j","tags":["advisory","patch","third-party-advisory","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://groups.google.com/g/rubyonrails-security/c/MmFO3LYQE8U","tags":["exploit","mailing-list","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2026/05/msg00022.html","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-32224","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/rails/rails/commit/611990f1a6c137c2d56b1ba06b27e5d2434dcd6a","tags":["web"],"sources":["ghsa"]},{"url":"https://discuss.rubyonrails.org/t/cve-2022-32224-possible-rce-escalation-bug-with-serialized-columns-in-active-record/81017","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rails/rails/commits/main/activerecord","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2022-32224.yml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"hackerone","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2025-04-24T15:17:17.965Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-32224","url":"https://www.cve.org/CVERecord?id=CVE-2022-32224","licence":"CVE Terms of Use","modified":"2026-05-11T16:53:19.403Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3hhc-qp5v-9p2j","url":"https://github.com/advisories/GHSA-3hhc-qp5v-9p2j","licence":"CC-BY-4.0","modified":"2026-07-08T06:29:07.745Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-32224","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-32224","licence":"Public domain","modified":"2026-06-17T04:46:54.847Z"}],"updatedAt":"2026-11-25T22:58:17.233Z","epss":{"score":0.02741,"percentile":0.86929,"date":"2026-11-30T12:00:22.000Z"}}