Unsigned Content-Type in Active Storage GCS direct uploads
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-345.
Summary
Active Storage in Rails from 8.1 before 8.1.4.1 and before 8.0.5.2 signs direct upload URLs for GCS services configured with cache_control without covering the Content-Type header (CWE-345). A client can therefore send any Content-Type, and GCS stores it as object metadata, so an uploaded file can be served as inline HTML under the application's bucket path on storage.googleapis.com. Script in such a file runs on the storage origin and could register a Service Worker that reads or replaces later responses for signed URLs in that bucket. Applications that accept direct uploads with this configuration are affected.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
Description from the CNA
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, when a GCS service is configured with the cache_control option, ActiveStorage::Service::GCSService#url_for_direct_upload signs direct-upload URLs with V4, and the V4 signature covers only the Cache-Control and Host headers. A direct-upload client can therefore send a Content-Type of its choosing, and can omit the declared Content-MD5, without invalidating the URL. GCS stores the supplied content type as object metadata, which takes precedence over the response-content-type that Active Storage sets on download URLs, so an uploaded object could be served as inline HTML under the application's bucket path on storage.googleapis.com. Script in such an object runs on the storage origin rather than the application's, but could register a Service Worker scoped to the bucket path and read or replace a victim's later responses for signed URLs in that bucket. Applications that use the GCS service with cache_control configured and accept direct uploads are affected. GCS services without cache_control sign with V2 and are not affected. This issue is fixed in versions 8.1.4.1 and 8.0.5.2.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Rails | rails | 8.1 to before 8.1.4.1; before 8.0.5.2 | 8.1.4.1, 8.0.5.2 | Patch available | CNA |
| — | activestorage (RubyGems) | 8.1.0.beta1 to before 8.1.4.1 | 8.1.4.1 | Patch available | GHSA-3w93-6hmw-whh4 |
| — | activestorage (RubyGems) | before 8.0.5.2 | 8.0.5.2 | Patch available | GHSA-3w93-6hmw-whh4 |
- rails VendorRails Affected 8.1 to before 8.1.4.1; before 8.0.5.2 Fixed in 8.1.4.1, 8.0.5.2 Patch available CNA
- activestorage (RubyGems) Vendor— Affected 8.1.0.beta1 to before 8.1.4.1 Fixed in 8.1.4.1 Patch available GHSA-3w93-6hmw-whh4
- activestorage (RubyGems) Vendor— Affected before 8.0.5.2 Fixed in 8.0.5.2 Patch available GHSA-3w93-6hmw-whh4
Remediation
Rails 8.1.4.1 and 8.0.5.2 fix this, and the activestorage gem is fixed in 8.1.4.1 and 8.0.5.2.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
- Fix · CNA rails (rails) Fixed in 8.1.4.1, 8.0.5.2
- Fix · GHSA-3w93-6hmw-whh4 activestorage (RubyGems) Fixed in 8.1.4.1 Advisory →
- Fix · GHSA-3w93-6hmw-whh4 activestorage (RubyGems) Fixed in 8.0.5.2 Advisory →
Timeline
- 2026-11-10 Threatist record created from CVE-2026-126084
- 2026-11-12 CISA SSVC decision points changed
- 2026-11-13 Alias added: GHSA-3w93-6hmw-whh4
- 2026-11-13 Fix available: RubyGems/[email protected], RubyGems/[email protected] · GHSA-3w93-6hmw-whh4
- 2026-11-13 CVSS score added · GHSA-3w93-6hmw-whh4
- 2026-11-13 Weakness changed · GHSA-3w93-6hmw-whh4
- 2026-11-13 8 new references · GHSA-3w93-6hmw-whh4
References
Other 7
- https://github.com/rails/rails/security/advisories/GHSA-3w93-6hmw-whh4
- https://github.com/rails/rails/commit/8d93f6a872e9550a91bf0e4fce50083a235ef3b1
- https://github.com/rails/rails/commit/ddc08ba61a8001e7402864c62e466cf732fc7614
- https://github.com/rails/rails/releases/tag/v8.0.5.2
- https://github.com/rails/rails/releases/tag/v8.1.4.1
- https://github.com/rails/rails
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/GHSA-3w93-6hmw-whh4.yml
More Rails vulnerabilities
- TI-2014-00124 Path traversal in Ruby on Rails lets remote attackers read files KEVCVSS 3.1HIGH 7.5
- TI-2019-03828 File content disclosure in Rails Action View KEVCVSS 3.1HIGH 7.5
- TI-2016-00672 Directory traversal in Rails Action View lets attackers read files KEVCVSS 3.1HIGH 7.5
- TI-2019-03830 Command injection in Rails https://github.com/rails/rails CVSS 3.1CRITICAL 9.8
- TI-2026-47043 Action Pack: Possible arbitrary file read and remote code execution in Active Storage variant processing CVSS 4.0CRITICAL 9.5
- TI-2025-18040 Command injection in Rails activestorage CVSS 4.0CRITICAL 9.2
Sources
- CVE-2026-126084 · CVE Program
- CVE-2026-126084 · NVD
- FIRST EPSS
- GHSA-3w93-6hmw-whh4 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences