CVE-2022-32224
criticalpriority · attend · 50EPSS 0.026 · 85 %ileexploit · PoCDEEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (1)
Public proof-of-concept and weaponised exploit code.
- ooooooo-q/cve-2022-32224-railsooooooo-q/cve-2022-32224-railsPoC · poc_in_github
affected products (21)
Products and version ranges known to be affected.
- activerecord project activerecord< 5.2.8.1nvdUScpe:2.3:a:activerecord_project:activerecord:*:*:*:*:*:*:*:*
- activerecord project activerecord6.0.0 → 6.0.5.1nvdUScpe:2.3:a:activerecord_project:activerecord:*:*:*:*:*:*:*:*
- activerecord project activerecord6.1.0 → 6.1.6.1nvdUScpe:2.3:a:activerecord_project:activerecord:*:*:*:*:*:*:*:*
- activerecord project activerecord7.0.0 → 7.0.3.1nvdUScpe:2.3:a:activerecord_project:activerecord:*:*:*:*:*:*:*:*
advisories (3)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2022-0662Ruby on Rails: Schwachstelle ermöglicht CodeausführungDeutsch2022-07-12csaf · cert_bundDE
Ein entfernter Angreifer kann eine Schwachstelle in Ruby on Rails ausnutzen, um beliebigen Programmcode auszuführen.
- WID-SEC-W-2023-1143Red Hat Satellite: Mehrere SchwachstellenDeutsch2023-05-03csaf · cert_bundDE
Ein entfernter, anonymer Angreifer kann mehrere Schwachstellen in Red Hat Satellite ausnutzen, um beliebigen Programmcode auszuführen, Informationen offenzulegen, einen Cross-Site-Scripting-Angriff durchzuführen oder einen Denial of Service Zustand herbeizuführen.
- GHSA-3hhc-qp5v-9p2jActive Record RCE bug with Serialized Columns2022-07-12ghsa · osvUS
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.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (14)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2022-32224/cnnvd
- https://github.com/advisories/GHSA-3hhc-qp5v-9p2jcnnvd
- https://groups.google.com/g/rubyonrails-security/c/MmFO3LYQE8Ucnnvd
- https://packetstormsecurity.com/files/170585/Red-Hat-Security-Advisory-2023-0261-02.htmlcnnvd
- https://security-tracker.debian.org/tracker/railsPatchcnnvd
- https://vigilance.fr/vulnerability/Rails-code-execution-via-YAML-Serialized-Columns-39182cnnvd
- https://www.auscert.org.au/bulletins/ESB-2022.4346cnnvd
- https://www.auscert.org.au/bulletins/ESB-2023.0290cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan