Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. activerecord
  4. ›
  5. GMS-2022-3029

GMS-2022-3029: Duplicate of ./gem/activerecord/CVE-2022-32224.yml

July 12, 2022 (updated July 13, 2022)

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.

References

  • discuss.rubyonrails.org/t/cve-2022-32224-possible-rce-escalation-bug-with-serialized-columns-in-active-record/81017
  • github.com/advisories/GHSA-3hhc-qp5v-9p2j
  • github.com/rails/rails/commit/611990f1a6c137c2d56b1ba06b27e5d2434dcd6a
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2022-32224.yml
  • groups.google.com/g/rubyonrails-security/c/MmFO3LYQE8U
  • nvd.nist.gov/vuln/detail/CVE-2022-32224

Code Behaviors & Features

Detect and mitigate GMS-2022-3029 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 5.2.8, all versions starting from 6.0.0 up to 6.0.5, all versions starting from 6.1.0 up to 6.1.6, all versions starting from 7.0.0 up to 7.0.3

Fixed versions

  • 6.1.6.1
  • 7.0.3.1
  • 5.2.8.1
  • 6.0.5.1

Solution

Upgrade to versions 6.1.6.1, 7.0.3.1, 5.2.8.1, 6.0.5.1 or above.

Source file

gem/activerecord/GMS-2022-3029.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:21 +0000.