Live threats

All CVEs / Rubyonrails

CVE-2022-21831Rubyonrails Active Storage

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
3.2%
probability of exploitation in 30 days · percentile 89
Auth required
No
Published
May 26, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-94
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

A code injection vulnerability exists in the Active Storage >= v5.2.0 that could allow an attacker to execute code via image_processing arguments.

Original NVD text.

What to do

  1. Apply the vendor's security update for Active Storage.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
RubyGems activestorage ≥ 5.2.0 < 5.2.6.3 5.2.6.3 gem "activestorage", ">= 5.2.6.3"
RubyGems activestorage ≥ 6.0.0 < 6.0.4.7 6.0.4.7 gem "activestorage", ">= 6.0.4.7"
RubyGems activestorage ≥ 6.1.0 < 6.1.4.7 6.1.4.7 gem "activestorage", ">= 6.1.4.7"
RubyGems activestorage ≥ 7.0.0 < 7.0.2.3 7.0.2.3 gem "activestorage", ">= 7.0.2.3"

Per OSV / GitHub Advisories (GHSA-w749-p3v6-hccq). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
rubyonrailsactive_storage≥ 5.2.0 < 5.2.6.3
rubyonrailsactive_storage≥ 6.0.0 < 6.0.4.7
rubyonrailsactive_storage≥ 6.1.0 < 6.1.4.7
rubyonrailsactive_storage≥ 7.0.0 < 7.0.2.3
debiandebian_linux10.0

Official sources

References

Links published by the sources. Open them with care.