{"answers":{"affected":"8 open source packages ship an affected version, including activerecord. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-32224 exists.","fix":"Upgrade activerecord to a fixed version for your release line: 5.2.8.1, 6.0.5.1, 6.1.6.1 or 7.0.3.1.","what":"CVE-2022-32224 is a critical unsafe deserialization vulnerability in https://github.com/rails/rails, published on 5 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-32224 and fix it if it is affected.\n\nWhat it is: CVE-2022-32224 is a critical unsafe deserialization vulnerability in https://github.com/rails/rails, published on 5 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-32224 exists.\n\nAffected packages and fixed versions:\n- activerecord (RubyGems): affected all versions; fixed in 5.2.8.1\n- activerecord (RubyGems): affected all versions; fixed in 5.2.8.1\n- activerecord (RubyGems): affected from 6.0.0; fixed in 6.0.5.1\n- activerecord (RubyGems): affected from 6.0.0; fixed in 6.0.5.1\n- activerecord (RubyGems): affected from 6.1.0; fixed in 6.1.6.1\n- activerecord (RubyGems): affected from 6.1.0; fixed in 6.1.6.1\n- activerecord (RubyGems): affected from 7.0.0; fixed in 7.0.3.1\n- activerecord (RubyGems): affected from 7.0.0; fixed in 7.0.3.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-32224/ (Markdown: https://insights.sbomify.com/CVE-2022-32224/index.md)","id":"CVE-2022-32224","markdown":"https://insights.sbomify.com/CVE-2022-32224/index.md","name":"CVE-2022-32224","record":{"aliases":["DEBIAN-CVE-2022-32224","GHSA-3hhc-qp5v-9p2j","UBUNTU-CVE-2022-32224","openSUSE-SU-2023:0009-1","openSUSE-SU-2024:12244-1","openSUSE-SU-2024:12879-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":true,"product_category":"Ruby on Rails","requires_auth":"none","summary":"Attackers with database write access can achieve remote code execution via unsafe YAML deserialization in Active Record columns.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"hackerone","cpe":[{"product":"activerecord","vendor":"activerecord_project"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"description":"A possible escalation to RCE vulnerability exists when using YAML serialized columns in Active Record \u003c 7.0.3.1, \u003c6.1.6.1, \u003c6.0.5.1 and \u003c5.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.","ecosystems":["RubyGems","SUSE:Package Hub 15 SP4","openSUSE:Leap 15.4","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2022-07-17","github_poc":1,"max_poc_stars":2,"metasploit":0,"nuclei":0,"refs":[{"date":"2022-07-17T04:09:03Z","kind":"github_poc","ref":"https://github.com/ooooooo-q/cve-2022-32224-rails","stars":2,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"Active Record RCE bug with Serialized Columns","id":"CVE-2022-32224","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"deserialization","year":"2022"},"n_packages":12,"n_references":2,"next":{"headline":"Cross-site scripting in Veeam Management Pack for Microsoft System Center","id":"CVE-2022-32225"},"packages":[{"ecosystem":"RubyGems","fixed":["5.2.8.1"],"introduced":["0"],"last_affected":[],"package":"activerecord","purl":null,"source":"GHSA-3hhc-qp5v-9p2j"},{"ecosystem":"RubyGems","fixed":["5.2.8.1"],"introduced":["0"],"last_affected":[],"package":"activerecord","purl":"pkg:gem/activerecord","source":"GHSA-3hhc-qp5v-9p2j"},{"ecosystem":"RubyGems","fixed":["6.0.5.1"],"introduced":["6.0.0"],"last_affected":[],"package":"activerecord","purl":null,"source":"GHSA-3hhc-qp5v-9p2j"},{"ecosystem":"RubyGems","fixed":["6.0.5.1"],"introduced":["6.0.0"],"last_affected":[],"package":"activerecord","purl":"pkg:gem/activerecord","source":"GHSA-3hhc-qp5v-9p2j"},{"ecosystem":"RubyGems","fixed":["6.1.6.1"],"introduced":["6.1.0"],"last_affected":[],"package":"activerecord","purl":null,"source":"GHSA-3hhc-qp5v-9p2j"},{"ecosystem":"RubyGems","fixed":["6.1.6.1"],"introduced":["6.1.0"],"last_affected":[],"package":"activerecord","purl":"pkg:gem/activerecord","source":"GHSA-3hhc-qp5v-9p2j"},{"ecosystem":"RubyGems","fixed":["7.0.3.1"],"introduced":["7.0.0"],"last_affected":[],"package":"activerecord","purl":null,"source":"GHSA-3hhc-qp5v-9p2j"},{"ecosystem":"RubyGems","fixed":["7.0.3.1"],"introduced":["7.0.0"],"last_affected":[],"package":"activerecord","purl":"pkg:gem/activerecord","source":"GHSA-3hhc-qp5v-9p2j"},{"ecosystem":"SUSE:Package Hub 15 SP4","fixed":["5.2.3-bp154.2.3.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-activerecord-5.2","purl":"pkg:rpm/suse/rubygem-activerecord-5.2\u0026distro=SUSE%20Package%20Hub%2015%20SP4","source":"openSUSE-SU-2023:0009-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["5.2.3-bp154.2.3.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-activerecord-5.2","purl":"pkg:rpm/opensuse/rubygem-activerecord-5.2\u0026distro=openSUSE%20Leap%2015.4","source":"openSUSE-SU-2023:0009-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["7.0.4.3-1.1"],"introduced":["0"],"last_affected":[],"package":"ruby3.2-rubygem-activerecord-7.0","purl":"pkg:rpm/opensuse/ruby3.2-rubygem-activerecord-7.0\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:12879-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["7.0.3.1-1.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-activerecord-7.0","purl":"pkg:rpm/opensuse/rubygem-activerecord-7.0\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:12244-1"}],"prev":{"headline":"Other in Node","id":"CVE-2022-32223"},"products":["https://github.com/rails/rails"],"published":"2022-12-05","related":[{"cvss_score":8.8,"headline":"SQL Injection Vulnerability via ActiveRecord comments","id":"CVE-2023-22794","kev_date_added":null,"published":"2023-02-09"},{"cvss_score":7.5,"headline":"Denial of Service Vulnerability in ActiveRecord's PostgreSQL adapter","id":"CVE-2022-44566","kev_date_added":null,"published":"2023-02-09"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-05-11","vendors":["n/a"]},"summary":"Attackers with database write access can achieve remote code execution via unsafe YAML deserialization in Active Record columns.","url":"https://insights.sbomify.com/CVE-2022-32224/"}