CVE-2022-21831 Possible code injection vulnerability in Rails / Active Storage
CriticalCVSS 9.8
EPSS 3.1%
PoC
- Published
- Updated
- Exploit status
- Proof-of-concept only
- Technology
- UbuntuDebian
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.
Upgrade path
15 packages: 5 fixed, 9 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/rails(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/rails(Ubuntu 24.04) | = 2:6.1.7.3+dfsg-2build1; = 2:6.1.7.3+dfsg-3; All versions | No fix listed | No fix yet |
| ubuntu/rails(Ubuntu 25.10) | = 2:6.1.7.3+dfsg-7; = 2:7.2.2.1+dfsg-7; All versions | No fix listed | No fix yet |
| ubuntu/rails(Ubuntu 26.04) | = 2:7.2.2.1+dfsg-7; = 2:7.2.2.2+dfsg-2; = 2:7.2.3+dfsg-2; All versions | No fix listed | No fix yet |
| ubuntu/rails(Ubuntu 26.10) | = 2:7.2.3+dfsg-2; = 2:7.2.3.2+dfsg-2; All versions | No fix listed | No fix yet |
| ubuntu/rails(Ubuntu Pro 16.04) | = 2:4.1.10-1; = 2:4.2.5-1; = 2:4.2.5.1-1; = 2:4.2.5.2-2 +4 more | No fix listed | No fix yet |
| ubuntu/rails(Ubuntu Pro 18.04) | = 2:4.2.9-2; = 2:4.2.9-4; = 2:4.2.10-0ubuntu4; = 2:4.2.10-0ubuntu4+esm1 +2 more | No fix listed | No fix yet |
| ubuntu/rails(Ubuntu Pro 20.04) | = 2:5.2.2.1+dfsg-1ubuntu1; = 2:5.2.3+dfsg-3; = 2:5.2.3+dfsg-3ubuntu0.1~esm1; All versions | No fix listed | No fix yet |
| ubuntu/rails(Ubuntu Pro 22.04) | = 2:6.0.3.7+dfsg-2; = 2:6.1.4.1+dfsg-8ubuntu2; = 2:6.1.4.1+dfsg-8ubuntu2+esm1; All versions | No fix listed | No fix yet |
| debian/rails(Debian 12) | < 2:6.1.4.7+dfsg-1 | 2:6.1.4.7+dfsg-1 | Fixed |
| debian/rails(Debian 13) | < 2:6.1.4.7+dfsg-1 | 2:6.1.4.7+dfsg-1 | Fixed |
| debian/rails(Debian 14) | < 2:6.1.4.7+dfsg-1 | 2:6.1.4.7+dfsg-1 | Fixed |
| rubygems activestorage(RubyGems) | = 5.2.0; = 5.2.1; = 5.2.1.1; = 5.2.1.rc1 +68 more | 5.2.6.3, 6.0.4.7, 6.1.4.7, 7.0.2.3 | Fixed |
| rubyonrails active storage | >= 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.3, 6.0.4.7, 6.1.4.7, 7.0.2.3 | Fixed |
| debian linux | = 10.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems activestorage(RubyGems) | >= 5.2.0, <= 5.2.6.2 | No fix listed |
| rubygems activestorage(RubyGems) | >= 6.0.0, <= 6.0.4.6 | No fix listed |
| rubygems activestorage(RubyGems) | >= 6.1.0, <= 6.1.4.6 | No fix listed |
| rubygems activestorage(RubyGems) | >= 7.0.0, <= 7.0.2.2 | No fix listed |
| rubygems activestorage(RubyGems) | >= 5.2.0, < 5.2.6.3 | 5.2.6.3 |
| rubygems activestorage(RubyGems) | = 5.2.0 | No fix listed |
| rubygems activestorage(RubyGems) | = 5.2.1 | No fix listed |
| rubygems activestorage(RubyGems) | = 5.2.1.1 | No fix listed |
| rubygems activestorage(RubyGems) | = 5.2.1.rc1 | No fix listed |
| rubygems activestorage(RubyGems) | = 5.2.2 | No fix listed |
| rubygems activestorage(RubyGems) | = 5.2.2.1 | No fix listed |
| rubygems activestorage(RubyGems) | = 5.2.2.rc1 | No fix listed |
| rubygems activestorage(RubyGems) | = 5.2.3 | No fix listed |
| rubygems activestorage(RubyGems) | = 5.2.3.rc1 | No fix listed |
| rubygems activestorage(RubyGems) | = 5.2.4 | No fix listed |
| rubygems activestorage(RubyGems) | = 5.2.4.1 | No fix listed |
| rubygems activestorage(RubyGems) | = 5.2.4.2 | No fix listed |
| rubygems activestorage(RubyGems) | = 5.2.4.3 | No fix listed |
| rubygems activestorage(RubyGems) | = 5.2.4.4 | No fix listed |
| rubygems activestorage(RubyGems) | = 5.2.4.5 | No fix listed |
| rubygems activestorage(RubyGems) | = 5.2.4.6 | No fix listed |
| rubygems activestorage(RubyGems) | = 5.2.4.rc1 | No fix listed |
| rubygems activestorage(RubyGems) | = 5.2.5 | No fix listed |
| rubygems activestorage(RubyGems) | = 5.2.6 | No fix listed |
| rubygems activestorage(RubyGems) | = 5.2.6.1 | No fix listed |
Show 91 more
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems activestorage(RubyGems) | = 5.2.6.2 | No fix listed |
| rubygems activestorage(RubyGems) | >= 6.0.0, < 6.0.4.7 | 6.0.4.7 |
| rubygems activestorage(RubyGems) | = 6.0.0 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.0.1 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.0.1.rc1 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.0.2 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.0.2.1 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.0.2.2 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.0.2.rc1 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.0.2.rc2 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.0.3 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.0.3.1 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.0.3.2 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.0.3.3 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.0.3.4 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.0.3.5 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.0.3.6 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.0.3.7 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.0.3.rc1 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.0.4 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.0.4.1 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.0.4.2 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.0.4.3 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.0.4.4 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.0.4.5 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.0.4.6 | No fix listed |
| rubygems activestorage(RubyGems) | >= 6.1.0, < 6.1.4.7 | 6.1.4.7 |
| rubygems activestorage(RubyGems) | = 6.1.0 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.1.1 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.1.2 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.1.2.1 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.1.3 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.1.3.1 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.1.3.2 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.1.4 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.1.4.1 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.1.4.2 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.1.4.3 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.1.4.4 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.1.4.5 | No fix listed |
| rubygems activestorage(RubyGems) | = 6.1.4.6 | No fix listed |
| rubygems activestorage(RubyGems) | >= 7.0.0, < 7.0.2.3 | 7.0.2.3 |
| rubygems activestorage(RubyGems) | = 7.0.0 | No fix listed |
| rubygems activestorage(RubyGems) | = 7.0.1 | No fix listed |
| rubygems activestorage(RubyGems) | = 7.0.2 | No fix listed |
| rubygems activestorage(RubyGems) | = 7.0.2.1 | No fix listed |
| rubygems activestorage(RubyGems) | = 7.0.2.2 | No fix listed |
| ubuntu/rails(Ubuntu:22.04) | All versions | No fix listed |
| rubyonrails active storage | >= 5.2.0, < 5.2.6.3 | 5.2.6.3 |
| rubyonrails active storage | >= 6.0.0, < 6.0.4.7 | 6.0.4.7 |
| rubyonrails active storage | >= 6.1.0, < 6.1.4.7 | 6.1.4.7 |
| rubyonrails active storage | >= 7.0.0, < 7.0.2.3 | 7.0.2.3 |
| debian linux | = 10.0 | No fix listed |
| ubuntu/rails(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/rails(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/rails(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/rails(Ubuntu:Pro:16.04) | All versions | No fix listed |
| ubuntu/rails(Ubuntu:Pro:16.04) | = 2:4.1.10-1 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:16.04) | = 2:4.2.5-1 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:16.04) | = 2:4.2.5.1-1 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:16.04) | = 2:4.2.5.2-2 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:16.04) | = 2:4.2.6-1 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:16.04) | = 2:4.2.6-1ubuntu0.1~esm1 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:16.04) | = 2:4.2.6-1ubuntu0.1~esm2 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:18.04) | All versions | No fix listed |
| ubuntu/rails(Ubuntu:Pro:18.04) | = 2:4.2.9-2 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:18.04) | = 2:4.2.9-4 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:18.04) | = 2:4.2.10-0ubuntu4 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:18.04) | = 2:4.2.10-0ubuntu4+esm1 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:18.04) | = 2:4.2.10-0ubuntu4+esm2 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:20.04) | All versions | No fix listed |
| ubuntu/rails(Ubuntu:Pro:20.04) | = 2:5.2.2.1+dfsg-1ubuntu1 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:20.04) | = 2:5.2.3+dfsg-3 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:20.04) | = 2:5.2.3+dfsg-3ubuntu0.1~esm1 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:22.04) | All versions | No fix listed |
| ubuntu/rails(Ubuntu:Pro:22.04) | = 2:6.0.3.7+dfsg-2 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:22.04) | = 2:6.1.4.1+dfsg-8ubuntu2 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:22.04) | = 2:6.1.4.1+dfsg-8ubuntu2+esm1 | No fix listed |
| ubuntu/rails(Ubuntu:24.04) | = 2:6.1.7.3+dfsg-2build1 | No fix listed |
| ubuntu/rails(Ubuntu:24.04) | = 2:6.1.7.3+dfsg-3 | No fix listed |
| ubuntu/rails(Ubuntu:25.10) | All versions | No fix listed |
| ubuntu/rails(Ubuntu:25.10) | = 2:6.1.7.3+dfsg-7 | No fix listed |
| ubuntu/rails(Ubuntu:25.10) | = 2:7.2.2.1+dfsg-7 | No fix listed |
| ubuntu/rails(Ubuntu:26.10) | = 2:7.2.3+dfsg-2 | No fix listed |
| ubuntu/rails(Ubuntu:26.10) | = 2:7.2.3.2+dfsg-2 | No fix listed |
| ubuntu/rails(Ubuntu:26.04) | = 2:7.2.2.1+dfsg-7 | No fix listed |
| ubuntu/rails(Ubuntu:26.04) | = 2:7.2.2.2+dfsg-2 | No fix listed |
| ubuntu/rails(Ubuntu:26.04) | = 2:7.2.3+dfsg-2 | No fix listed |
| debian/rails(Debian:12) | < 2:6.1.4.7+dfsg-1 | 2:6.1.4.7+dfsg-1 |
| debian/rails(Debian:13) | < 2:6.1.4.7+dfsg-1 | 2:6.1.4.7+dfsg-1 |
| debian/rails(Debian:14) | < 2:6.1.4.7+dfsg-1 | 2:6.1.4.7+dfsg-1 |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- groups.google.com
- rubysec.com
- github.com exploit
- github.com issue-tracking patch third-party-advisory vendor-advisory
- [debian-lts-announce] 20220903 [SECURITY] [DLA 3093-1] rails security update mailing-list third-party-advisory
- security.netapp.com third-party-advisory
- DSA-5372 vendor-advisory
- github.com product
- Debian Security Tracker CVE-2022-21831 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking
- bugs.debian.org issue-tracking