Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessInitiate direct upload declaring small byte_size
-
ExploitReceive signed GCS URL with no length constraint
-
ExecutionPUT oversized body to the signed URL
-
ImpactBlob stored larger than declared, bypassing size validation and quota
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V4 - API and Web Service Server-side security enforcement
|
| Exploitation Conditions | Exploitation requires an application that (1) uses Active Storage with the Google Cloud Storage service specifically - the S3 service was already fixed by CVE-2020-8162 and other backends are not described as affected - and (2) accepts Active Storage direct uploads, so the attacker (a direct-upload client) can obtain a signed URL and control the upload body. The impact is limited to circumventing the application's own file-size validations and storage quotas; it cannot read or corrupt other data. Limiting factors: only GCS-backed direct-upload deployments are affected, and the attacker must be able to drive the direct-upload flow for the target application. |
| Impact | This is a genuine but low-urgency medium-severity issue (CVSS 5.3, CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N), best characterized as a client-side enforcement weakness (CWE-602) rather than a code-execution or data-exposure flaw. The only impact is integrity-low: a direct-upload client can store a blob larger than the byte_size it declared, circumventing application file-size validations and quotas; there is no confidentiality or direct availability impact and no privilege escalation. The exploitation status is 'no public exploit identified at time of analysis' - the input lists no KEV entry, no EPSS score, and no PoC/exploit reference (the oversized-upload test in the fix commit is a vendor regression test, not a published exploit). The vuln.today decision label is 'this_month', consistent with a bug that should be patched on a normal maintenance cadence rather than as an emergency. The 'Authentication Bypass' tag in the input is misleading: nothing in the advisory or commit diff involves bypassing authentication - the bypass is of app-level size/quota checks. EPSS and SSVC data are absent, so probabilistic exploitation signals cannot be weighed; the assessment rests on the CVSS vector, the advisory, and the fix diff, all of which point to a limited-impact, config-scoped issue. |
| Exploit ScenarioDerived | An application using Active Storage with the Google Cloud Storage service and browser/client direct uploads requests a signed upload URL while declaring a small byte_size. Because the pre-fix GCSService signs no content-length constraint, the client then PUTs a much larger body to the same signed URL; the blob is persisted at its true (larger) size while the recorded metadata keeps the smaller declared size, defeating file-size validations and storage quotas. No public exploit is identified at time of analysis, though the mechanism is fully documented in the vendor fix. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 11, 2026
Active Storage's Google Cloud Storage service issues signed direct-upload URLs that do not bind the blob's declared byte_size, so a direct-upload client can store a body larger than the size it declared while the resulting blob records the original smaller figure. Applications that use Active Storage with the GCS backend and accept direct uploads are affected, and successful abuse lets an attacker exceed the application's own file-size validations and storage quotas; confidentiality and availability are not impacted. The weakness mirrors the S3 service issue fixed as CVE-2020-8162, and it is a client-side enforcement gap (CWE-602) of medium severity (CVSS 5.3, AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N) rather than a code-execution or data-exposure flaw. No public exploit code and no confirmed active exploitation were identified at time of analysis, and the vendor has released fixed versions.
RemediationAI
Upgrade the activestorage gem to 8.0.5.2 (8.0 branch) or 8.1.4.1 (8.1 branch), per https://github.com/rails/rails/security/advisories/GHSA-hfr4-8rjc-97m2. Teams that cannot upgrade immediately can apply the vendor backports: https://github.com/rails/rails/commit/7fe85a72a789eae5ee070ce3ee1dad10a8a5f70c.patch for 8.0 and https://github.com/rails/rails/commit/e19916cea31cbfb0030b165ae853b741f8dd57a7.patch for 8.1; these are the vendor's own patches, so the resulting code matches the fixed releases. Because the fix makes browsers send x-goog-content-length-range, the GCS bucket CORS configuration must list that header in responseHeader or browser direct uploads will fail after upgrading - the Active Storage CHANGELOG and the CORS example in the Active Storage guide show the required change, so update CORS in the same maintenance window to avoid breaking uploads. Deployments that cannot patch or upgrade at all would need to stop accepting GCS direct uploads (for example by routing uploads through the application server so the size check happens before the file reaches the bucket), which costs application-side bandwidth and latency; changing this is the only complete fix the vendor describes.
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 ActiveStorage::Service::GCSService is its Google Cloud Storage backend. Direct uploads work by having the application's controller call url_for_direct_upload, which produces a V4-signed GCS URL plus a set of headers from headers_for_direct_upload, and the browser then PUTs the file body straight to Cloud Storage, bypassing the Rails application. In vulnerable releases the signature bound the key, expiry, checksum and content type but never the declared content length, and no x-goog-content-length-range header was returned, so the signed URL authorized a body of arbitrary size while Active Storage persisted the blob metadata with the originally declared byte_size. The root cause is CWE-602, client-side enforcement of server-side security: the size restriction lived only in the application's own validation logic, not in the storage-layer authorization. The fix for CVE-2020-8162 addressed exactly this for the S3 service by binding content length into the signature; the GCS service was left with the analogous gap. The patched code adds a content_length keyword to url_for_direct_upload and headers_for_direct_upload and emits "x-goog-content-length-range: N,N", where N is the declared byte_size, so Cloud Storage itself rejects any upload body of a different size, as demonstrated by the added test that expects a 400 response when a larger body is sent.
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:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Network-reachable direct-upload flow with no added complexity; the signing endpoint is typically unauthenticated (PR:N), impact is integrity-low (size/quota bypass) with no C or A effect.
Primary rating from Vendor (https://github.com/rails/rails).
CVSS VectorVendor: https://github.com/rails/rails
DescriptionCVE.org
Impact
ActiveStorage::Service::GCSService#url_for_direct_upload does not bind the declared content length into the signed direct-upload URL, and #headers_for_direct_upload returns no length constraint, so the URL authorizes an upload body of any size. A direct-upload client could store a file larger than the byte_size it declared, and the resulting blob keeps the declared size, possibly bypassing application file size validations and quotas. This is the weakness that CVE-2020-8162 fixed in the S3 service.
Applications that store files in Google Cloud Storage and accept direct uploads are affected.
Details
The fixed releases sign an x-goog-content-length-range header that matches the blob's declared byte_size and return it from headers_for_direct_upload, so Cloud Storage rejects an upload body of any other size. Browsers send this header with the direct upload, so a bucket's CORS configuration must list x-goog-content-length-range in responseHeader, or browser direct uploads fail after the upgrade. The Active Storage CHANGELOG and the CORS example in the Active Storage guide show the change.
Releases
The fixed releases are available at the normal locations.
Patches for those who cannot upgrade at once:
- 8.1: https://github.com/rails/rails/commit/e19916cea31cbfb0030b165ae853b741f8dd57a7.patch
- 8.0: https://github.com/rails/rails/commit/7fe85a72a789eae5ee070ce3ee1dad10a8a5f70c.patch
Credit
This issue was responsibly reported by HackerOne researcher f4cts.
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
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-122939
GHSA-hfr4-8rjc-97m2
NVD
CVE.org
EPSS
VulDB
Exploit-DB