Intel

AIKIDO-2026-429881

activestorage is vulnerable to Denial of Service (DoS)

GHSA-p2pm-g2h6-7j5jPublished 3 days ago
November 4, 2026

43

CVE Score

Medium

Denial of Service (DoS)

Are you affected? Scan for Free

TL;DR

ActiveStorage::Filename#base and #extension_with_delimiter in activestorage pass the stored filename to File.basename and File.extname, which raise ArgumentError when the name contains a NUL byte. Active Storage stores the client-supplied filename as given, so a permitted upload can persist that name on databases that accept NUL bytes. Later requests that build a variant, open the blob, or render it then raise until the blob is purged or renamed. The fix derives the base and extension from the sanitized filename.

How do I fix this?

Upgrade the activestorage library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and the application stores uploads whose filenames can contain a NUL byte.

Versions

0.1 - 8.0.5.1

Fixed in 8.0.5.2

8.1.0 - 8.1.4

Fixed in 8.1.4.1

Background info

activestorage is vulnerable to Denial of Service (DoS) in versions 0.1 - 8.0.5.1 and 8.1.0 - 8.1.4.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea