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.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)2.6%top 14.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

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

EcosystemPackageFixed inAdvisory
Debian:12rails2:6.1.6.1+dfsg-1DEBIAN-CVE-2022-32224
Debian:13rails2:6.1.6.1+dfsg-1DEBIAN-CVE-2022-32224
Debian:14rails2:6.1.6.1+dfsg-1DEBIAN-CVE-2022-32224
RubyGemsactiverecord5.2.8.1GHSA-3hhc-qp5v-9p2j
RubyGemsactiverecord7.0.3.1GHSA-3hhc-qp5v-9p2j
RubyGemsactiverecord6.1.6.1GHSA-3hhc-qp5v-9p2j
RubyGemsactiverecord6.0.5.1GHSA-3hhc-qp5v-9p2j
Ubuntu:24.04:LTSrailsno fix listedUBUNTU-CVE-2022-32224
Ubuntu:25.10railsno fix listedUBUNTU-CVE-2022-32224
Ubuntu:26.04:LTSrailsno fix listedUBUNTU-CVE-2022-32224
Ubuntu:26.10railsno fix listedUBUNTU-CVE-2022-32224

Affected products (as reported)

VendorProductVersions
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

References