Code injection in https://github.com/rails/rails
Priority MEDIUM 48CWE-94Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-94.
Summary
A code injection vulnerability exists in the Active Storage >= v5.2.0 that could allow an attacker to execute code via image_processing arguments.
Why it matters now
EPSS 0.03098 87th percentileScored 2026-11-07
Fix Fixed activestorage (RubyGems): 5.2.6.3, 6.0.4.7, 6.1.4.7 +1
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | https://github.com/rails/rails | 7.0.2.3, 6.1.4.7, 6.0.4.7, 5.2.6.3 | — | No fix listed | CNA |
| — | activestorage (RubyGems) | 5.2.0 to before 5.2.6.3 | 5.2.6.3 | Patch available | GHSA-w749-p3v6-hccq |
| — | activestorage (RubyGems) | 6.0.0 to before 6.0.4.7 | 6.0.4.7 | Patch available | GHSA-w749-p3v6-hccq |
| — | activestorage (RubyGems) | 6.1.0 to before 6.1.4.7 | 6.1.4.7 | Patch available | GHSA-w749-p3v6-hccq |
| — | activestorage (RubyGems) | 7.0.0 to before 7.0.2.3 | 7.0.2.3 | Patch available | GHSA-w749-p3v6-hccq |
- https://github.com/rails/rails Vendor— Affected 7.0.2.3, 6.1.4.7, 6.0.4.7, 5.2.6.3 Fixed in — No fix listed CNA
- activestorage (RubyGems) Vendor— Affected 5.2.0 to before 5.2.6.3 Fixed in 5.2.6.3 Patch available GHSA-w749-p3v6-hccq
- activestorage (RubyGems) Vendor— Affected 6.0.0 to before 6.0.4.7 Fixed in 6.0.4.7 Patch available GHSA-w749-p3v6-hccq
- activestorage (RubyGems) Vendor— Affected 6.1.0 to before 6.1.4.7 Fixed in 6.1.4.7 Patch available GHSA-w749-p3v6-hccq
- activestorage (RubyGems) Vendor— Affected 7.0.0 to before 7.0.2.3 Fixed in 7.0.2.3 Patch available GHSA-w749-p3v6-hccq
Remediation
- Fix · GHSA-w749-p3v6-hccq activestorage (RubyGems) Fixed in 5.2.6.3 Advisory →
- Fix · GHSA-w749-p3v6-hccq activestorage (RubyGems) Fixed in 6.0.4.7 Advisory →
- Fix · GHSA-w749-p3v6-hccq activestorage (RubyGems) Fixed in 6.1.4.7 Advisory →
- Fix · GHSA-w749-p3v6-hccq activestorage (RubyGems) Fixed in 7.0.2.3 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
Not affected: 1 product
- Red Hat Satellite 6
Timeline
- 2026-10-02 Threatist record created from CVE-2022-21831
- 2026-10-03 Alias added: GHSA-w749-p3v6-hccq
References
Advisory 4
Other 6
- https://github.com/rails/rails/commit/0a72f7d670e9aa77a0bb8584cb1411ddabb7546e
- https://github.com/rails/rails
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/CVE-2022-21831.yml
- https://groups.google.com/g/rubyonrails-security/c/n-p-W1yxatI
- https://rubysec.com/advisories/CVE-2022-21831
- https://security.netapp.com/advisory/ntap-20221118-0001
Sources
- CVE-2022-21831 · CVE Program
- CVE-2022-21831 · NVD
- FIRST EPSS
- GHSA-w749-p3v6-hccq · GitHub Advisory Database · CC BY 4.0
- CVE-2022-21831 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences