Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2022-21831

rubygem-activestorage: Code injection vulnerability in ActiveStorage

Overview

Published
26 May 2022
Modified
17 Jun 2026
Critical CVE
1 Registry packages
5 OS packages
3 Linux distributions
Yes Fix available

Description

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

Source: OX vulnerability database

Severity

9.8 · CRITICAL

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weakness: CWE-94

Affected packages · 1

Packages affected by CVE-2022-21831
EcosystemPackageVulnerableFixed in
RubyGems activestorage >=5.2.0, <5.2.6.3>=6.0.0, <6.0.4.7>=6.1.0, <6.1.4.7>=7.0.0, <7.0.2.3 5.2.6.36.0.4.76.1.4.77.0.2.3~> 5.2.6, >= 5.2.6.3

Open a package to see all its vulnerabilities.

Operating systems · 10 fixes

debian 5 releases · 1 package

fixed 5
rails
debian fixes for CVE-2022-21831
ReleasePackageFixed in
10 rails 2:5.2.2.1+dfsg-1+deb10u4
11 rails 2:6.0.3.7+dfsg-2+deb11u1
12 rails 2:6.1.4.7+dfsg-1
13 rails 2:6.1.4.7+dfsg-1
14 rails 2:6.1.4.7+dfsg-1

echo 1 release · 1 package

fixed 1
rails
echo fixes for CVE-2022-21831
ReleasePackageFixed in
rails 2:6.1.4.7+dfsg-1

openSUSE 1 release · 4 packages

fixed 4
ruby3-1-rubygem-activestorage-7-0 ruby3-2-rubygem-activestorage-7-0 ruby3-3-rubygem-activestorage-7-0 ruby3-4-rubygem-activestorage-7-0
openSUSE fixes for CVE-2022-21831
ReleasePackageFixed inAdvisory
Tumbleweed ruby3-1-rubygem-activestorage-7-0 7.0.2.3-1.1 openSUSE-SU-2024:11903-1
Tumbleweed ruby3-2-rubygem-activestorage-7-0 7.0.4.3-1.1 openSUSE-SU-2024:12880-1
Tumbleweed ruby3-3-rubygem-activestorage-7-0 7.0.8.4-1.1 openSUSE-SU-2024:14070-1
Tumbleweed ruby3-4-rubygem-activestorage-7-0 7.0.8.6-1.3 openSUSE-SU-2025:15113-1

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.