Advisory

GHSA-w749-p3v6-hccq

Also known as: CVE-2022-21831

Summary

Possible code injection vulnerability in Rails / Active Storage

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-03-08 21:25 UTC
Modified
2026-03-13 22:14 UTC

Affected packages and fixes

activestorage

RubyGems · All systems

Affected

  • introduced 5.2.0, fixed 5.2.6.3 (ecosystem)

Fixed versions

5.2.6.3

Fix

The export has no generic command for this ecosystem.

activestorage

RubyGems · All systems

Affected

  • introduced 6.0.0, fixed 6.0.4.7 (ecosystem)

Fixed versions

6.0.4.7

Fix

The export has no generic command for this ecosystem.

activestorage

RubyGems · All systems

Affected

  • introduced 6.1.0, fixed 6.1.4.7 (ecosystem)

Fixed versions

6.1.4.7

Fix

The export has no generic command for this ecosystem.

activestorage

RubyGems · All systems

Affected

  • introduced 7.0.0, fixed 7.0.2.3 (ecosystem)

Fixed versions

7.0.2.3

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences