Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. activestorage
  4. ›
  5. GMS-2022-301

GMS-2022-301: Duplicate of ./gem/activestorage/CVE-2022-21831.yml

March 8, 2022

The Active Storage module of Rails starting with version 5.2.0 are possibly vulnerable to code injection. This issue was patched in versions 5.2.6.2, 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.

References

  • github.com/advisories/GHSA-w749-p3v6-hccq
  • github.com/rails/rails/commit/0a72f7d670e9aa77a0bb8584cb1411ddabb7546e
  • groups.google.com/g/rubyonrails-security/c/n-p-W1yxatI
  • nvd.nist.gov/vuln/detail/CVE-2022-21831
  • rubysec.com/advisories/CVE-2022-21831/

Code Behaviors & Features

Detect and mitigate GMS-2022-301 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 5.2.0 up to 5.2.6.2, all versions starting from 6.0.0 up to 6.0.4.6, all versions starting from 6.1.0 up to 6.1.4.6, all versions starting from 7.0.0 up to 7.0.2.2

Fixed versions

  • 5.2.6.3
  • 6.0.4.7
  • 6.1.4.7
  • 7.0.2.3

Solution

Upgrade to versions 5.2.6.3, 6.0.4.7, 6.1.4.7, 7.0.2.3 or above.

Source file

gem/activestorage/GMS-2022-301.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 00:14:53 +0000.