CVE-2022-21831
rubygem-activestorage: Code injection vulnerability in ActiveStorage
Overview
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
| Ecosystem | Package | Vulnerable | Fixed 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
| Release | Package | Fixed 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
| Release | Package | Fixed 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
- access.redhat.com https://access.redhat.com/security/cve/CVE-2022-21831
- github.com https://github.com/advisories/GHSA-w749-p3v6-hccq
- github.com https://github.com/rails/rails
- github.com https://github.com/rails/rails/commit/0a72f7d670e9aa77a0bb8584cb1411ddabb7546e
- github.com https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/CVE-2022-21831.yml
- groups.google.com https://groups.google.com/g/rubyonrails-security/c/n-p-W1yxatI
- lists.debian.org https://lists.debian.org/debian-lts-announce/2022/09/msg00002.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2022-21831
- rubysec.com https://rubysec.com/advisories/CVE-2022-21831
- security.netapp.com https://security.netapp.com/advisory/ntap-20221118-0001
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.