AI Science Tracker

Rails Active Storage NUL-byte filenames can cause persistent denial of service

Ruby on Rails Active Storage · AI involvement attributed to Anthropic OSS Scanner (model unspecified)

Finding and attribution

Active Storage stores client-supplied filenames verbatim. On SQLite and MySQL/MariaDB, a permitted uploader can persist a filename containing a NUL byte; calls to File.basename or File.extname then raise ArgumentError when variants, previews or attachments are rendered, potentially disabling affected pages until the filename is purged or corrected. PostgreSQL rejects the row and is not affected.

Product: Ruby on Rails Active Storage. AI system: Anthropic OSS Scanner (model unspecified). Team / organization: Anthropic and Rails maintainers.

CVE identifiers: CVE-2026-126074.

AI and human contribution (source account): The Rails advisory directly says the issue was found by the Anthropic OSS Scanner, identifier ANT-2026-UQM5Z4YL. The source does not identify the model or detail validation steps.

Human involvement is only described where the source account establishes it; unknown involvement does not mean none. Vendor confirmation of a flaw does not confirm every claim about AI contribution.

Discovery context: The maintainer published GHSA-p2pm-g2h6-7j5j on 2026-11-04 and lists CVE-2026-126074. The advisory describes an availability vulnerability and does not assert exploitation.

Remediation status: fix documented. The advisory lists Active Storage 8.0.5.2 and 8.1.4.1 as patched and provides patches. The persistent failure can also be cleared by purging the affected blob or correcting its filename; PostgreSQL rejects the problematic row.

A source-documented fix does not establish installed patches or current safety. Source checking does not independently reproduce the finding or establish observed exploitation.

Disclosed 4 Nov 2026. AI attribution dated 4 Nov 2026. Sources checked 14 Nov 2026; these are separate dates, not a live installation check.

Recorded CVSS: Medium · highest recorded score 4.3. Documented technical effects: denial of service.

Severity, consequences and exploitation evidence

Case grouping uses the highest recorded CVSS score, with its version-specific severity band. It is descriptive, not a combined or editorial risk index. All recorded assessments remain below; scores from different versions and sources may disagree. CVSS specifications define version-specific scoring and severity bands.

CVE-2026-126074: denial of service.
Prerequisites / affected scope: CNA 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..
Exploitation evidence: Exploitation in the wild is not established by the cited description.. Impact source · checked 16 Nov 2026.

Documented fix: The advisory lists Active Storage 8.0.5.2 and 8.1.4.1 as patched and provides patches. The persistent failure can also be cleared by purging the affected blob or correcting its filename; PostgreSQL rejects the problematic row.

Original evidence

Download this source record (JSON)

Open this case in the interactive tracker · Browse all static security cases