Skip to main content

Rails Active Storage EUVDEUVD-2026-122939

| CVE-2026-126085 MEDIUM
Client-Side Enforcement of Server-Side Security (CWE-602)
2026-11-10 https://github.com/rails/rails GHSA-hfr4-8rjc-97m2
5.3
CVSS 3.1 · Vendor: https://github.com/rails/rails
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Initiate direct upload declaring small byte_size
  2. Exploit
    Receive signed GCS URL with no length constraint
  3. Execution
    PUT oversized body to the signed URL
  4. Impact
    Blob 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

rails < 8.0.5.2
rails 8.1, < 8.1.4.1

Affected Packages

rubygems activestorage fix: 8.0.5.2, 8.1.4.1
euvd rails fix: 8.0.5.2, 8.1.4.1

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

Vendor (https://github.com/rails/rails) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
vuln.today AI 5.3 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Red Hat 5.3 MEDIUM

Primary rating from Vendor (https://github.com/rails/rails).

CVSS VectorVendor: https://github.com/rails/rails

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

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

EPSS Score
0.5%
Top 58% exploitable
Prevalence
High
Rails Active Storage is widely deployed; affected subset is GCS direct-upload apps
Threat Intel
1
1 sources
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

More in Rails

View all
CVE-2016-0752 HIGH POC
7.5 Feb 16

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.

CVE-2013-0333 HIGH POC
7.5 Jan 30

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

CVE-2013-0156 HIGH POC
7.5 Jan 13

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

CVE-2016-2098 HIGH POC
7.3 Apr 07

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

CVE-2014-0130 HIGH
7.5 May 07

Directory traversal vulnerability in actionpack/lib/abstract_controller/base.rb in the implicit-render implementation in

CVE-2013-6414 MEDIUM POC
5.0 Dec 07

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

CVE-2019-5420 CRITICAL POC
9.8 Mar 27

A remote code execution vulnerability in development mode Rails <5.2.2.1, <6.0.0.beta3 can allow an attacker to guess th

CVE-2020-8165 CRITICAL POC
9.8 Jun 19

A deserialization of untrusted data vulnernerability exists in rails < 5.2.4.3, rails < 6.0.3.1 that can allow an attack

CVE-2020-8163 HIGH POC
8.8 Jul 02

The is a code injection vulnerability in versions of Rails prior to 5.0.1 that wouldallow an attacker who controlled the

CVE-2017-17917 HIGH POC
8.1 Dec 29

SQL injection vulnerability in the 'where' method in Ruby on Rails 5.1.4 and earlier allows remote attackers to execute

CVE-2017-17916 HIGH POC
8.1 Dec 29

SQL injection vulnerability in the 'find_by' method in Ruby on Rails 5.1.4 and earlier allows remote attackers to execut

CVE-2012-6496 HIGH POC
7.5 Jan 04

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

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy