Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain direct-upload URL from app
-
DeliveryUpload object with forged Content-Type:text/html
-
ExploitObject served as inline HTML on storage origin
-
ExecutionScript registers Service Worker scoped to bucket path
-
PersistIntercept victim's later signed-URL responses
-
ImpactRead or replace response content
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V15 - Secure Coding and Architecture Data authenticity verification
|
| Exploitation Conditions | Exploitation requires a very specific configuration: the application must use the Active Storage GCS service with the cache_control option set AND must accept direct uploads - GCS services without cache_control sign with V2 and are not affected. The attacker must be able to obtain a valid direct-upload URL from the application (often implying an application-level account with upload permission), then supply an attacker-chosen Content-Type (e.g. text/html) and omit the declared Content-MD5, which the V4 signature does not bind. Delivery of impact additionally requires victim interaction (UI:R): the victim must later load the malicious object or a signed URL within the same bucket path so the registered Service Worker can act. Limiting factors: non-default configuration (cache_control must be explicitly set), AC:H, required victim interaction, and the fact that script runs on the storage.googleapis.com origin rather than the application origin - impact is confined to signed-URL responses within that bucket path. Affected versions: activestorage >= 8.1, < 8.1.4.1 and < 8.0.5.2. |
| Impact | This is a genuinely narrow, moderate-risk issue that scores correctly at CVSS 4.7 (Medium) and is best read as a real-but-conditional priority rather than an emergency. The CVSS vector CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N aligns well with the mechanism described: network-reachable, but high attack complexity (AC:H) because exploitation depends on a specific configuration - a GCS service with the cache_control option set that accepts direct uploads - and requires victim interaction (UI:R) to load the malicious object or a later signed URL. Scope is changed (S:C) because script executes on the storage.googleapis.com origin rather than the application's, and the confidentiality/integrity impact is Low/Low because a registered Service Worker can read or replace a victim's later signed-URL responses within that bucket path, not the application origin directly. No KEV listing and no EPSS score are provided, and the input lists no PoC or exploit reference - only a regression test inside the fix commit - so exploitation remains theoretical. The vendor priority label is this_month, consistent with a patch-on-your-normal-cycle Medium issue, not act_now. One caveat to verify: PR:N assumes an attacker can obtain a direct-upload URL without application authentication; many applications only issue direct-upload URLs to authenticated users, which would effectively raise the privilege bar in those deployments - verify against your own upload authorization. The Tags field labels this 'Information Disclosure,' but the Service-Worker response-replacement capability also implies an integrity/response-tampering dimension, matching the I:L in the vector and CWE-345 (insufficient verification of data authenticity). |
| Exploit ScenarioDerived | An attacker who can obtain a direct-upload URL from an affected application (GCS service with cache_control set) uploads an object while supplying Content-Type: text/html instead of the declared type, since the V4 signature only binds Cache-Control and Host. The object is later served as inline HTML from the application's bucket path on storage.googleapis.com; its script registers a Service Worker scoped to that bucket path and can then read or replace a victim's subsequent signed-URL responses in that bucket. No public exploit is identified at time of analysis - only a regression test ships with the fix. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 10, 2026
Active Storage's Google Cloud Storage service, when the cache_control option is configured, signs direct-upload URLs with V4 signatures that bind only the Cache-Control and Host headers, so an uploader can substitute an arbitrary Content-Type (for example text/html) and omit the declared Content-MD5 without invalidating the URL. GCS then persists the attacker-supplied type as object metadata, which overrides the response-content-type Active Storage sets on download URLs, allowing an object to be served as inline HTML under the application's bucket path on storage.googleapis.com. Because the injected script runs on the storage origin, it can register a Service Worker scoped to that bucket path and read or replace a victim's later signed-URL responses, requiring victim interaction. Affected are activestorage releases >= 8.1 before 8.1.4.1 and releases before 8.0.5.2; GCS services without cache_control sign with V2 and are unaffected, and no public exploit was identified at time of analysis.
RemediationAI
Vendor-released patches are available: upgrade activestorage to 8.1.4.1 (8.1 branch) or 8.0.5.2 (8.0 branch and earlier), as documented at https://github.com/rails/rails/security/advisories/GHSA-3w93-6hmw-whh4 and on the release pages https://github.com/rails/rails/releases/tag/v8.1.4.1 and https://github.com/rails/rails/releases/tag/v8.0.5.2. Organizations that cannot upgrade immediately can apply the vendor-supplied backports: https://github.com/rails/rails/commit/8d93f6a872e9550a91bf0e4fce50083a235ef3b1.patch for 8.1 and https://github.com/rails/rails/commit/ddc08ba61a8001e7402864c62e466cf732fc7614.patch for 8.0. The documented workaround is to remove the cache_control option from the GCS service configuration, which makes Active Storage sign direct uploads with V2 and binds Content-Type and Content-MD5; the trade-off is that the configured Cache-Control value is no longer applied through the service configuration, whereas the fixed releases still send Cache-Control unsigned and lift the seven-day V4 expiry limit on direct-upload URLs.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in rubygems, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Active Storage is the file-attachment framework shipped with Ruby on Rails, and its GCSService generates signed PUT URLs that clients use to upload files directly to a Google Cloud Storage bucket, bypassing the application server. The root cause is CWE-345 (Insufficient Verification of Data Authenticity): signature schemes only protect the elements they actually cover. Under V4 signing, the URL signature covered just Cache-Control and Host, leaving Content-Type and Content-MD5 outside the authenticated payload; under V2 signing those two headers are bound into the string-to-sign, which is why the vulnerable code path deliberately switched to V4 whenever cache_control was present (V2 cannot sign non x-goog-* headers, but V4 caps URL lifetime at seven days). The fix moves every GCS direct upload to V2 signing: an empty Content-Type and the declared Content-MD5 are bound by the signature, the configured Cache-Control is still emitted by headers_for_direct_upload and sent by the client but is no longer signed, and direct-upload URL expiry is no longer limited to seven days. The security consequence of the missing binding is content-type confusion: the object is stored with attacker metadata and served as inline HTML from storage.googleapis.com, a different origin from the application, so a Service Worker registered against the bucket path can intercept subsequent signed-URL responses for that bucket.
Know when Rails gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
Network-reachable but AC:H and UI:R due to the required cache_control configuration and victim loading; S:C as script runs on the storage origin; C:L/I:L for reading/replacing bucket signed-URL responses, A:N.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Directory traversal vulnerability in Action View in Ruby on Rails before 3.2.22.1, 4.0.x and 4.1.x before 4.1.14.1, 4.2.
lib/active_support/json/backends/yaml.rb in Ruby on Rails 2.3.x before 2.3.16 and 3.0.x before 3.0.20 does not properly
active_support/core_ext/hash/conversions.rb in Ruby on Rails before 2.3.15, 3.0.x before 3.0.19, 3.1.x before 3.1.10, an
Action Pack in Ruby on Rails before 3.2.22.2, 4.x before 4.1.14.2, and 4.2.x before 4.2.5.2 allows remote attackers to e
Directory traversal vulnerability in actionpack/lib/abstract_controller/base.rb in the implicit-render implementation in
actionpack/lib/action_view/lookup_context.rb in Action View in Ruby on Rails 3.x before 3.2.16 and 4.x before 4.0.2 allo
A remote code execution vulnerability in development mode Rails <5.2.2.1, <6.0.0.beta3 can allow an attacker to guess th
A deserialization of untrusted data vulnernerability exists in rails < 5.2.4.3, rails < 6.0.3.1 that can allow an attack
The is a code injection vulnerability in versions of Rails prior to 5.0.1 that wouldallow an attacker who controlled the
SQL injection vulnerability in the 'where' method in Ruby on Rails 5.1.4 and earlier allows remote attackers to execute
SQL injection vulnerability in the 'find_by' method in Ruby on Rails 5.1.4 and earlier allows remote attackers to execut
SQL injection vulnerability in the Active Record component in Ruby on Rails before 3.0.18, 3.1.x before 3.1.9, and 3.2.x
EUVD-2026-122937
GHSA-3w93-6hmw-whh4
NVD
CVE.org
EPSS
Exploit-DB