What’s Vulnerable › Vulnerabilities
CVE-2022-21831: Possible code injection vulnerability in Rails / Active Storage
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 3.1% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-05-26 · updated 2026-06-17
- Weakness: CWE-94
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.
Affected products
- Debian Linux: 10.0
- rubyonrails Active Storage: from 5.2.0 before 5.2.6.3; from 6.0.0 before 6.0.4.7; from 6.1.0 before 6.1.4.7; from 7.0.0 before 7.0.2.3 — fixed in 5.2.6.3, 6.0.4.7, 6.1.4.7, 7.0.2.3
- Rubygems Activestorage: from 5.2.0 before 5.2.6.3; from 6.0.0 before 6.0.4.7; from 6.1.0 before 6.1.4.7; from 7.0.0 before 7.0.2.3; 5.2.0, 5.2.1, 5.2.1.1, 5.2.1.rc1, 5.2.2, 5.2.2.1 (+58) — fixed in 5.2.6.3, 6.0.4.7, 6.1.4.7, 7.0.2.3
How to fix
Upgrade to a fixed version: rubyonrails Active Storage 5.2.6.3, 6.0.4.7, 6.1.4.7, 7.0.2.3; Rubygems Activestorage 5.2.6.3, 6.0.4.7, 6.1.4.7, 7.0.2.3. Check the vendor advisory for mitigations.
References
- https://github.com/advisories/GHSA-w749-p3v6-hccq
- https://lists.debian.org/debian-lts-announce/2022/09/msg00002.html
- https://security.netapp.com/advisory/ntap-20221118-0001/
- https://www.debian.org/security/2023/dsa-5372
- https://github.com/advisories/GHSA-w749-p3v6-hccq
- https://lists.debian.org/debian-lts-announce/2022/09/msg00002.html
- https://security.netapp.com/advisory/ntap-20221118-0001/
- https://www.debian.org/security/2023/dsa-5372
Get alerted when CVE-2022-21831 or the next vulnerability affects your stack