Active Storage: Possible local file disclosure in Active Storage video previews and analysis
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in activestorage 8.0.5.2 and activestorage 8.1.4.1.
Active Storage makes it simple to upload and reference files in cloud services and attach those files to Active Record objects. Prior to 8.0.5.2 and from 8.1 until 8.1.4.1, Active Storage's ActiveStorage::Previewer::VideoPreviewer, ActiveStorage::Analyzer::VideoAnalyzer, and ActiveStorage::Analyzer::AudioAnalyzer pass uploaded blob contents to FFmpeg without restricting the demuxer. A direct upload can retain a client-declared video/* or audio/* content type for an HLS playlist. FFmpeg content probing selects the hls demuxer, which opens attacker-named file:// segments when the blob is previewed or analyzed. Applications that accept untrusted uploads and generate video previews or analyze video or audio attachments can disclose a local media file readable by the application process when the attacker knows its path. This issue is fixed in versions 8.0.5.2 and 8.1.4.1.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Rails | rails | <8.0.5.2, >=8.1 <8.1.4.1 | |
| rubygems: activestorage | <8.0.5.2, >=8.1.0.beta1 <8.1.4.1 | 8.0.5.2, 8.1.4.1 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in activestorage (RubyGems), strongest first
Embed
A live severity badge for an advisory, README or ticket