RCE in Rubyonrails Active Storage
CVE-2022-21831
A code injection vulnerability exists in the Active Storage >= v5.2.0 that could allow an attacker to execute code via image_processing arguments.
Vulnerability class: RCE (Remote Code Execution)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.031, 88.0th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Rubyonrails Active Storage
- Debian Linux — versions 10.0
- Https://github.com/rails/rails — versions 7.0.2.3, 6.1.4.7, 6.0.4.7, 5.2.6.3
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- usutani/study-turbolinks-link (last pushed 2023-03-08): Known security vulnerabilities detected. CVE-2022-21831 Critical severity CVE-2025-24293 Critical severity CVE-2020-8162 High severity CVE-2024-26144 Moderate severity
Also mentioned in 2 other repositories (ARPSyndicate/cvemon, pankajkryadav/Hacktivity). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/advisories/GHSA-w749-p3v6-hccq (Patch, Third Party Advisory)
- [debian-lts-announce] 20220903 [SECURITY] [DLA 3093-1] rails security update (mailing-list, Mailing List, Third Party Advisory)
- security.netapp.com/advisory/ntap-20221118-0001/ (Third Party Advisory)
- DSA-5372 (vendor-advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.