CVE-2026-126074
Last modified
CVE-2026-126074 is a medium-severity vulnerability rated 4.3/10 on the CVSS scale. 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. EPSS estimates a 0.50% chance of exploitation in the next 30 days.
Description
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| rails | rails | >= 8.1, < 8.1.4.1; < 8.0.5.2 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-126074?
How severe is CVE-2026-126074?
How do I fix CVE-2026-126074?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-126068Action Mailbox routes incoming emails to controller-like mai…3.7
- CVE-2026-126069Action View is a framework for handling view template lookup…4.7
- CVE-2026-126070Action View is a framework for handling view template lookup…6.1
- CVE-2026-126071Active Storage makes it simple to upload and reference files…5.3
- CVE-2026-126072Action Pack is a framework for handling and responding to we…5.9
- CVE-2026-126073Action Pack is a framework for handling and responding to we…4.8
- CVE-2026-126075Active Support is a collection of utility classes and standa…4.7
- CVE-2026-126076Action Pack is a framework for handling and responding to we…4.2
- CVE-2026-126077Action Pack is a framework for handling and responding to we…6.8
- CVE-2026-126078Action View is a framework for handling view template lookup…6.1
- CVE-2026-126079Action View is a framework for handling view template lookup…6.1
- CVE-2026-126080Active Support is a collection of utility classes and standa…7.5
Are you affected by CVE-2026-126074?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
