Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS13NzQ5LXAzdjYtaGNjcc0wwQ
Possible code injection vulnerability in Rails / Active Storage
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.
Permalink: https://github.com/advisories/GHSA-w749-p3v6-hccqJSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS13NzQ5LXAzdjYtaGNjcc0wwQ
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: over 2 years ago
Updated: over 1 year ago
CVSS Score: 9.8
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Identifiers: GHSA-w749-p3v6-hccq, CVE-2022-21831
References:
- https://nvd.nist.gov/vuln/detail/CVE-2022-21831
- https://github.com/rails/rails/commit/0a72f7d670e9aa77a0bb8584cb1411ddabb7546e
- https://groups.google.com/g/rubyonrails-security/c/n-p-W1yxatI
- https://rubysec.com/advisories/CVE-2022-21831/
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/CVE-2022-21831.yml
- 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
Blast Radius: 53.5
Affected Packages
rubygems:activestorage
Dependent packages: 65Dependent repositories: 289,858
Downloads: 324,540,729 total
Affected Version Ranges: >= 7.0.0, <= 7.0.2.2, >= 6.1.0, <= 6.1.4.6, >= 6.0.0, <= 6.0.4.6, >= 5.2.0, <= 5.2.6.2
Fixed in: 7.0.2.3, 6.1.4.7, 6.0.4.7, 5.2.6.3
All affected versions: 5.2.0, 5.2.1, 5.2.2, 5.2.3, 5.2.4, 5.2.5, 5.2.6, 5.2.7, 5.2.8, 6.0.0, 6.0.1, 6.0.2, 6.0.3, 6.0.4, 6.0.5, 6.0.6, 6.1.0, 6.1.1, 6.1.2, 6.1.3, 6.1.4, 6.1.5, 6.1.6, 6.1.7, 7.0.0, 7.0.1, 7.0.2, 7.0.3, 7.0.4, 7.0.5, 7.0.6, 7.0.7, 7.0.8, 7.1.0, 7.1.1, 7.1.2, 7.1.3, 7.1.4, 7.1.5, 7.2.0, 7.2.1, 7.2.2, 8.0.0
All unaffected versions: