CVE-2026-126074: Active Storage: Possible DoS vulnerability in Active Storage filename handling
Published 2026-11-10 · Updated 2026-11-10 · Also known as GHSA-p2pm-g2h6-7j5j
Summary
Active Storage passes stored filenames unmodified to Ruby file methods, causing an ArgumentError and persistent denial of service when filenames contain NUL bytes. Ruby on Rails developers using SQLite or MySQL/MariaDB with affected Active Storage versions must upgrade immediately.
Who is affected
Applications using RubyGems activestorage that rely on databases accepting NUL bytes in string columns, such as SQLite and MySQL/MariaDB, are affected if a permitted user uploads an attachment with a NUL byte in the filename. Subsequent requests attempting to build variants, previews, open the blob, or render it as an Action Text attachment will raise an ArgumentError, causing persistent denial of service for pages displaying the blob. PostgreSQL applications are unaffected because PostgreSQL rejects the database row.
Exploitability
The vulnerability has a CVSS base score of 4.3 with a vector of CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L, indicating network accessibility, low attack complexity, and low privileges required without user interaction, resulting in availability impact only. The EPSS score is 0.005 and CISA KEV active exploitation status is false.
Remediation
- Upgrade RubyGems activestorage to version 8.1.4.1, version 8.0.5.2, or later.
- Apply the vendor patches referenced in the advisory if upgrading is not immediately possible.
How to check your project
- Check the Gemfile or Gemfile.lock for the installed version of the RubyGems activestorage package.
- Verify whether the application uses SQLite or MySQL/MariaDB as a database backend where client-supplied filenames with NUL bytes could be persisted.
Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| RubyGems | activestorage |
>= 8.1.0.beta1, < 8.1.4.1 | 8.1.4.1 | bundle update activestorage |
| RubyGems | activestorage |
>= 0, < 8.0.5.2 | 8.0.5.2 | bundle update activestorage |
CVSS 3.0 vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | Low |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | None |
| Availability | Low |
FAQ
Are PostgreSQL applications affected?
No, applications that use PostgreSQL are not affected because PostgreSQL rejects rows containing NUL bytes.
Does this vulnerability leak data or allow code execution?
No, the impact is strictly limited to availability (Denial of Service) with no confidentiality or integrity impact.
Is any data migration required after upgrading?
No, stored filenames are not modified, and no data migration is required.
Original advisory description
References
- WEB https://github.com/rails/rails/security/advisories/GHSA-p2pm-g2h6-7j5j
- WEB https://github.com/rails/rails/commit/60f22af88b71eae251f112d8c0237a08a8832692
- WEB https://github.com/rails/rails/commit/9b0d4bef2211a2c08cab2e0ea17fa1d0efd5d47a
- PACKAGE https://github.com/rails/rails
- WEB https://github.com/rails/rails/releases/tag/v8.0.5.2
- WEB https://github.com/rails/rails/releases/tag/v8.1.4.1
- WEB https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/GHSA-p2pm-g2h6-7j5j.yml
Source records: GHSA-p2pm-g2h6-7j5j (OSV.dev) · EPSS by FIRST, 2026-11-21.