CVE-2022-21831Rubyonrails Active Storage
Critical 9.8 No auth needed
Follow: this CVE · Rubyonrails · Rubyonrails Active Storage We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Active Storage.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| rubyonrails | active_storage | ≥ 5.2.0 < 5.2.6.3 |
| rubyonrails | active_storage | ≥ 6.0.0 < 6.0.4.7 |
| rubyonrails | active_storage | ≥ 6.1.0 < 6.1.4.7 |
| rubyonrails | active_storage | ≥ 7.0.0 < 7.0.2.3 |
| debian | debian_linux | 10.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- security.netapp.com Third Party Advisory
- www.debian.org