CVE-2026-122006
Active Storage: Possible arbitrary file write and read in image analysis
9.8
Description
The activestorage gem before 8.1.4.1 for Ruby on Rails, when ImageMagick attachment processing occurs, can allow server read and write operations (e.g., reading secret_key_base) because the ImageMagick analyzer runs when a file is attached, and there is not an ImageMagick security policy to block unintended functionality.
Affected products and versions
| Product / package | Ecosystem / vendor | Versions | Fixed in | Source |
|---|---|---|---|---|
| activestorage | rubygems | >= 8.1.0.beta1, < 8.1.4.1 | 8.1.4.1 | GitHub |
| activestorage | rubygems | < 8.0.5.2 | 8.0.5.2 | GitHub |
References
- GitHub
- Advisory · rails/rails
- nvd.nist.gov
- nvd.nist.gov
- Pull request · digitalocean/droplet-1-clicks
- Pull request · rubysec/ruby-advisory-db
- Commit · rails/rails
- Commit · rails/rails
- GitHub · alan-turing-institute/cyber-threat-observatory
- Release · rails/rails
- Release · rails/rails
- GitHub · rubysec/ruby-advisory-db