CVE-2022-21831
mediumpriority · attend · 50EPSS 0.031 · 88 %ileexploit · PoCDEEURUUSEPSS · scored 2026-10-27
A code injection vulnerability exists in the Active Storage >= v5.2.0 that could allow an attacker to execute code via image_processing arguments.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–critical · 6.8–9.8
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (1)
Public proof-of-concept and weaponised exploit code.
affected products (26)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2022-1280Ruby on Rails: Schwachstelle ermöglicht CodeausführungDeutsch2022-03-08csaf · cert_bundDE
Ein Angreifer kann eine Schwachstelle in Ruby on Rails ausnutzen, um beliebigen Programmcode auszuführen.
- GHSA-w749-p3v6-hccqPossible code injection vulnerability in Rails / Active Storage2022-03-08ghsa · osvUS
The Active Storage module of Rails starting with version 5.2.0 is possibly vulnerable to code injection. This issue was patched in versions 5.2.6.3, 6.0.4.7, 6.1.4.7, and 7.0.2.3. To work around this issue, applications should implement a strict allow-list on accepted transformation methods or arguments. Additionally, a strict ImageMagick security policy will help mitigate this issue.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (18)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2022-21831/cnnvd
- https://github.com/advisories/GHSA-w749-p3v6-hccqcnnvd
- https://lists.debian.org/debian-lts-announce/2022/09/msg00002.htmlcnnvd
- https://rubysec.com/advisories/CVE-2022-21831/Patchcnnvd
- https://security.netapp.com/advisory/ntap-20221118-0001/cnnvd
- https://vigilance.fr/vulnerability/Rails-code-execution-via-Active-Storage-39181cnnvd
- https://www.auscert.org.au/bulletins/ESB-2022.4346cnnvd
- https://www.auscert.org.au/bulletins/ESB-2023.1542cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan