Back to security alerts
Critical

Rails Active Storage ImageMagick File Write Vulnerability

Ruby on Rails

What happened

An attacker who uploads a crafted file can cause Rails to write arbitrary files and read secrets when using ImageMagick for Active Storage processing

Are you affected?

Rails versions 8.1 before 8.1.4.1 and any version older than 8.0.5.2 may be affected

What to do now

  1. Upgrade Rails to 8.1.4.1 or newer, or to 8.0.5.2 or newer if you are on an older branch
  2. Verify that your ImageMagick policy does not permit the vulnerable coders and consider disabling the variant processor for untrusted uploads

Sources

Data sources: cve.now, CISA KEV, GitHub Advisory Database, OSV.

This product uses data from the NVD API but is not endorsed or certified by the NVD.

Not sure if your app is affected?

Get a free Finish Line Scan and a senior engineer will tell you what to fix.

Get a free scan