Action Pack: Possible arbitrary file read and remote code execution in Active Storage variant processing
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 7.2.3.2, 8.0.5.1, 8.1.3.1
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- 1 Metasploit module, 7 proofs of concept on GitHub
- Exploitation: poc
- Automatable: yes
- Technical impact: total
Summary
Action Pack is a framework for handling and responding to web requests. In versions prior to 7.2.3.2, 8.0.5.1 and 8.1.3.1, Active Storage does not disable libvips operations marked unsafe for untrusted content, allowing a crafted upload to invoke such an operation. Consuming applications are affected when configured to use libvips and accept image uploads from untrusted users. An unauthenticated attacker may exploit this behavior to read arbitrary files accessible to the Rails process, including environment variables and application secrets. Exposure of credentials such as secret_key_base or external-service tokens may enable remote code execution or lateral movement. This issue has been fixed in versions 7.2.3.2, 8.0.5.1 and 8.1.3.1.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: poc · Automatable: yes · Technical impact: total
- Record last updated
- EPSS reached 10%
FIRST estimates at least a 10% chance of exploitation in the next 30 days
Affected versions
- rails rails
fixed in 7.2.3.2; From 8.0.0.beta1 · fixed in 8.0.5.1; From 8.1.0.beta1 · fixed in 8.1.3.1
- activestorageRubyGems
fixed in 7.2.3.2
- activestorageRubyGems
From 8.0.0.beta1 · fixed in 8.0.5.1
- activestorageRubyGems
From 8.1.0.beta1 · fixed in 8.1.3.1