External Control of File Name or Path Affecting activestorage package, versions <8.0.5.2>=8.1.0.beta1, <8.1.4.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.34% (30th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUBY-ACTIVESTORAGE-22836400
  • published24 Nov 2026
  • disclosed11 Nov 2026
  • creditw3rmut

Introduced: 11 Nov 2026

NewCVE-2026-126188  (opens in a new tab)
CWE-73  (opens in a new tab)

How to fix?

Upgrade activestorage to version 8.0.5.2, 8.1.4.1 or higher.

Overview

Affected versions of this package are vulnerable to External Control of File Name or Path via the VideoPreviewer, VideoAnalyzer, and AudioAnalyzer components. An attacker can upload an HLS playlist declared as a video or audio file, with a file:// segment pointing to a known local path, and trigger preview generation or media analysis. Because FFmpeg and ffprobe select a demuxer by probing the blob, they open the referenced file, exposing its media contents through the generated preview or stored metadata if the application process can read it.

Workarounds

  • Remove ActiveStorage::Previewer::VideoPreviewer from config.active_storage.previewers, and remove ActiveStorage::Analyzer::VideoAnalyzer and ActiveStorage::Analyzer::AudioAnalyzer from config.active_storage.analyzers. This stops Active Storage from running FFmpeg or ffprobe on uploaded files, preventing the file:// playlist attack from exposing local media files.

CVSS Base Scores

version 4.0
version 3.1