Technical impact
Active Storage components write uploaded files to temporary disk using the original filename’s extension and then pass the file path to external utilities such as ffprobe, ffmpeg, and ImageMagick. Those utilities select decoding drivers based on the extension when the content type does not match. An attacker can choose a malicious filename and declare a content type that forces a dangerous decoder, such as AviSynth, to be invoked. The resulting execution can expose files readable by the application process or load a native library supplied by the attacker, giving remote code execution in the media‑processing process. The weakness also allows arbitrary file reads through the preview image output. The flaw covers Rails versions prior to 8.1.4.1 and 8.0.5.2 when any untrusted upload that triggers video preview, audio preview, or image conversion is processed.
Affected Systems
Rails applications using Active Storage that accept uploads from users and generate video previews, audio preview, or image thumbnails through ImageMagick or ffmpeg are vulnerable. Only Rails releases before 8.1.4.1 or 8.0.5.2 are affected; later versions contain the fix. The vulnerability is tied specifically to ActiveStorage::Blob#open behavior in those Rails releases. Applications with custom or patched media processors are not impacted if they avoid the vulnerable file‑handling path.
Risk and Exploitability
The CVSS score is 8.8, indicating high severity. The EPSS score is below 1 %, suggesting that real‑world exploitation is low but not impossible, especially if a vulnerability is known to a threat actor. The flaw is not listed in the CISA KEV catalog, but the lack of exploitation pressure does not reduce the risk for active upload environments. Attackers can exploit the flaw by uploading a crafted file with a specific extension, such as .avs for AviSynth, causing the media server to execute code or read files on disk. The requirement of a pre‑built ffmpeg binary that supports AviSynth (common in Windows and certain Linux distributions) limits the attack surface, yet the possibility of other dangerous decoders exists. For environment defenders, the potential impact includes denial of service, data exfiltration, and full remote code execution on the host running media processing utilities.
Debian DLA
Github GHSA