Active Storage: Possible DoS vulnerability in Active Storage filename handling
CVE-2026-126074Published 10 Nov 2026, 20:48 UTC
Real-world risk
1.5/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
4.3
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
Active Storage makes it simple to upload and reference files in cloud services and attach those files to Active Record objects. Prior to 8.1.4.1 and 8.0.5.2, ActiveStorage::Filename#base and #extension_with_delimiter, and therefore #extension, pass the stored filename unmodified to File.basename and File.extname, which raise ArgumentError when the name contains a NUL byte. Active Storage stores the client-supplied filename verbatim, so a user who is permitted to upload an attachment could persist such a filename on databases that accept NUL bytes in string columns, such as SQLite and MySQL/MariaDB. Each subsequent request that builds a variant or preview of the blob, opens it, or renders it as an Action Text attachment then raises, possibly resulting in a persistent DoS vulnerability for the pages that display the blob until it is purged or its filename is corrected. Applications that use PostgreSQL are not affected, because PostgreSQL rejects the row. This issue is fixed in versions 8.1.4.1 and 8.0.5.2.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| Ruby on RailsWidespread | >= 8.1, < 8.1.4.1; < 8.0.5.2 | 8.1.4.1, 8.0.5.2 |
What to do
Update to a fixed version: 8.1.4.1, 8.0.5.2.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | LowA real low-privileged account | From the CVSS vector | 0.60 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.6% chance of exploitation in 30 days (percentile 51), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.600
- Threat T1: Nothing known0.850
- 10 × impact 0.3 × prerequisites 0.6 × threat 0.851.530
- Rounded to one decimal between 0.1 and 101.5
Exploitation and evidence timeline
- 10 Nov 2026 Published
- 3 Dec 2026 Risk 1.5 (cvss fallback)
Weakness
CWE-248
References
- https://github.com/rails/rails/security/advisories/GHSA-p2pm-g2h6-7j5jvendor-advisory
- https://github.com/rails/rails/commit/60f22af88b71eae251f112d8c0237a08a8832692misc
- https://github.com/rails/rails/commit/9b0d4bef2211a2c08cab2e0ea17fa1d0efd5d47amisc
- https://github.com/rails/rails/releases/tag/v8.0.5.2misc
- https://github.com/rails/rails/releases/tag/v8.1.4.1misc
- CVE-2026-126074 on CVE.org