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-hccq
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS13NzQ5LXAzdjYtaGNjcc0wwQ
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: about 2 years ago
Updated: about 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: Repository: https://github.com/rails/rails
Blast Radius: 53.5

Affected Packages

rubygems:activestorage
Dependent packages: 61
Dependent repositories: 289,858
Downloads: 275,830,445 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
All unaffected versions: