{
  "id": "ghsa-p2pm-g2h6-7j5j",
  "title": "Rails Active Storage NUL-byte filenames can cause persistent denial of service",
  "product": "Ruby on Rails Active Storage",
  "ai_system": "Anthropic OSS Scanner (model unspecified)",
  "organization": "Anthropic and Rails maintainers",
  "summary": "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.",
  "ai_role": "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.",
  "disclosure_date": "2026-11-04",
  "ai_attribution_date": "2026-11-04",
  "classification": "disclosure",
  "classification_note": "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.",
  "cves": [
    "CVE-2026-126074"
  ],
  "source_url": "https://github.com/rails/rails/security/advisories/GHSA-p2pm-g2h6-7j5j",
  "ai_source_url": "https://github.com/rails/rails/security/advisories/GHSA-p2pm-g2h6-7j5j",
  "remediation": "fix documented",
  "remediation_note": "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.",
  "advisory_url": "https://github.com/rails/rails/security/advisories/GHSA-p2pm-g2h6-7j5j",
  "checked_date": "2026-11-14",
  "cvss": [
    {
      "cve": "CVE-2026-126074",
      "version": "3.1",
      "score": 4.3,
      "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L",
      "source_url": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/126xxx/CVE-2026-126074.json",
      "source_name": "GitHub_M (CNA; CVE Program record)",
      "checked_date": "2026-11-16"
    }
  ],
  "impacts": [
    {
      "cves": [
        "CVE-2026-126074"
      ],
      "consequences": [
        "denial of service"
      ],
      "conditions": "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": "Exploitation in the wild is not established by the cited description.",
      "source_url": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/126xxx/CVE-2026-126074.json",
      "checked_date": "2026-11-16"
    }
  ]
}
