Vulnerability · Published Dec 5, 2022 · Assigned by hackerone
CVE-2022-32224
Critical 9.8
In plain English
A critical-severity unsafe deserialization in https://github.com/rails/rails. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 2.6% (higher than 85% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | rails | 2:6.1.6.1+dfsg-1 | DEBIAN-CVE-2022-32224 |
| Debian:13 | rails | 2:6.1.6.1+dfsg-1 | DEBIAN-CVE-2022-32224 |
| Debian:14 | rails | 2:6.1.6.1+dfsg-1 | DEBIAN-CVE-2022-32224 |
| RubyGems | activerecord | 5.2.8.1 | GHSA-3hhc-qp5v-9p2j |
| RubyGems | activerecord | 7.0.3.1 | GHSA-3hhc-qp5v-9p2j |
| RubyGems | activerecord | 6.1.6.1 | GHSA-3hhc-qp5v-9p2j |
| RubyGems | activerecord | 6.0.5.1 | GHSA-3hhc-qp5v-9p2j |
| Ubuntu:24.04:LTS | rails | no fix listed | UBUNTU-CVE-2022-32224 |
| Ubuntu:25.10 | rails | no fix listed | UBUNTU-CVE-2022-32224 |
| Ubuntu:26.04:LTS | rails | no fix listed | UBUNTU-CVE-2022-32224 |
| Ubuntu:26.10 | rails | no fix listed | UBUNTU-CVE-2022-32224 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | https://github.com/rails/rails | 7.0.3.1, 6.1.6.1, 6.0.5.1, 5.2.8.1 |
Weakness: CWE-502 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H