Uncaught Exception Affecting activestorage package, versions <8.0.5.2>=8.1.0.beta1, <8.1.4.1


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.61% (51st 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 Learn

Learn about Uncaught Exception vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-ACTIVESTORAGE-22839992
  • published24 Nov 2026
  • disclosed10 Nov 2026
  • creditAnthropic OSS Scanner

Introduced: 10 Nov 2026

NewCVE-2026-126074  (opens in a new tab)
CWE-248  (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 Uncaught Exception via ActiveStorage::Filename#base and #extension_with_delimiter (and the derived #extension) in Active Storage filename handling. An attacker permitted to upload an attachment can supply a filename containing a NUL byte, which databases such as SQLite and MySQL/MariaDB may store verbatim; subsequent requests that build a variant or preview, open the blob, or render it as an Action Text attachment raise ArgumentError, disrupting pages that use the attachment until the blob is purged or its filename is corrected.

Notes

  • Database gate: the filename must be persisted in a database that accepts NUL bytes in string columns, such as SQLite or MySQL/MariaDB; PostgreSQL rejects the row, so this attack path does not land there.

CVSS Base Scores

version 4.0
version 3.1