Technical impact
Action Pack’s Active Storage component allows processing of image uploads via libvips, but it fails to disable libvips operations that are marked unsafe for untrusted content. A crafted image upload can trigger these operations, allowing an unauthenticated attacker to read any file accessible to the Rails process, including environment variables and application secrets. The exposure of such credentials could enable remote code execution or lateral movement within the application environment. This weakness corresponds to CWE‑1188 (Improper Restriction of Operations to Those Intended) and CWE‑434 (Unrestricted Upload of File with Dangerous Type).
Affected Systems
Rails applications built on the Action Pack framework that use libvips to process image uploads are vulnerable. Any version prior to 7.2.3.2, 8.0.5.1, or 8.1.3.1 is affected; upgrading to these releases or later mitigates the flaw.
Risk and Exploitability
The CVSS score of 9.5 marks this issue as critical. An EPSS score of 33% indicates that exploitation is considered likely. Although the vulnerability is not listed in the CISA KEV catalog, the attack vector is an unauthenticated image upload that triggers an unsafe libvips operation, resulting in unauthorized file read and potential credential compromise that could lead to remote code execution or lateral movement within the application environment.
Debian DLA
Debian DSA
Github GHSA