## Active Storage: Possible DoS vulnerability in Active Storage filename handling

- 種別: advisory
- 重大度: medium
- 関連技術: ruby, mysql, sqlite
- CVE: CVE-2026-126074
- 公開日時: 2026-11-10T21:33:12.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-p2pm-g2h6-7j5j)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-p2pm-g2h6-7j5j

影響: rubygems:activestorage >= 8.1.0.beta1, < 8.1.4.1 → 8.1.4.1, rubygems:activestorage < 8.0.5.2 → 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 pr…