Skip to content
OpenAdvisories
Critical · 9.8 Public exploit CVE-2022-21831 EUVD-2022-1564GHSA-w749-p3v6-hccq

Possible code injection vulnerability in Rails / Active Storage

Published May 26, 2022 · Updated Aug 3, 2024 · Assigned by hackerone

Description

A code injection vulnerability exists in the Active Storage >= v5.2.0 that could allow an attacker to execute code via image_processing arguments.

Affected products

VendorProductAffectedFixed
— https://github.com/rails/rails 7.0.2.3, 6.1.4.7, 6.0.4.7, 5.2.6.3 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rails 2:6.1.4.7+dfsg-1 —
Debian 13 rails 2:6.1.4.7+dfsg-1 —
Debian 12 rails 2:6.1.4.7+dfsg-1 —
Debian 11 rails 2:6.0.3.7+dfsg-2+deb11u1 DSA-5372-1
Debian 10 rails 2:5.2.2.1+dfsg-1+deb10u4 DLA-3093-1
ReleasePackageFixed inAdvisory
Ubuntu 26.10 rails No fix yet —
Ubuntu 26.04 LTS rails No fix yet —
Ubuntu 25.10 rails No fix yet —
Ubuntu 24.04 LTS rails No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS rails No fix yet —
Ubuntu Pro 20.04 LTS rails No fix yet —
Ubuntu Pro 18.04 LTS rails No fix yet —
Ubuntu Pro 16.04 LTS rails No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed ruby3.2-rubygem-activestorage-7.0 7.0.4.3-1.1 openSUSE-SU-2024:12880-1
openSUSE Tumbleweed rubygem-activestorage-7.0 7.0.2.3-1.1 openSUSE-SU-2025:15113-1, openSUSE-SU-2024:14070-1, openSUSE-SU-2024:11903-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

  • usutani/study-turbolinks-link ★ 0 · Apr 5, 2020

    Known security vulnerabilities detected. CVE-2022-21831 Critical severity CVE-2025-24293 Critical severity CVE-2020-8162 High severity CVE-2024-26144 Moderate severity

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems activestorage >= 5.2.0, < 5.2.6.3 5.2.6.3 GHSA-w749-p3v6-hccq
RubyGems activestorage >= 6.0.0, < 6.0.4.7 6.0.4.7 GHSA-w749-p3v6-hccq
RubyGems activestorage >= 6.1.0, < 6.1.4.7 6.1.4.7 GHSA-w749-p3v6-hccq
RubyGems activestorage >= 7.0.0, < 7.0.2.3 7.0.2.3 GHSA-w749-p3v6-hccq

Advisories 7

References