CVE-2026-126085 Details
Description
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, 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. This issue is fixed in versions 8.1.4.1 and 8.0.5.2.
A vulnerability exists in Ruby on Rails Active Storage when using Google Cloud Storage (GCS) for direct uploads. In versions 8.1 prior to 8.1.4.1 and 8.0 prior to 8.0.5.2, the GCS service for direct uploads did not properly enforce the declared content length. This oversight allowed clients to upload files larger than the specified size, potentially bypassing application-level file size validations and quotas. The issue arises because the signed direct-upload URL authorized uploads of any size, as the URL did not bind the declared content length, and the headers for direct uploads returned no length constraint. This vulnerability could lead to unauthorized circumvention of file size limits, allowing larger files to be uploaded and accepted as valid by the application.
Users can upgrade to Active Storage versions 8.1.4.1 or 8.0.5.2, both of which include the necessary fix. After upgrading, ensure that the bucket's CORS configuration allows the `x-goog-content-length-range` header in the response, as this is required for direct uploads from the browser.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Nov 10, 2026CISA-ADP
Assessed Nov 14, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/rails/rails/commit/7fe85a72a789eae5ee070ce3ee1dad10a8a5f70c | [email protected] | Source CodeVendor |
| https://github.com/rails/rails/commit/e19916cea31cbfb0030b165ae853b741f8dd57a7 | [email protected] | Source CodeVendor |
| https://github.com/rails/rails/releases/tag/v8.0.5.2 | [email protected] | Release NotesVendor |
| https://github.com/rails/rails/releases/tag/v8.1.4.1 | [email protected] | Release NotesVendor |
| https://github.com/rails/rails/security/advisories/GHSA-hfr4-8rjc-97m2 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-602 | Client-Side Enforcement of Server-Side Security | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Rails Active Storage | >= 8.1, < 8.1.4.1 < 8.0.5.2 |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 14, 2026 | CVE Modified | CISA-ADP |
| Nov 10, 2026 | New CVE Received | [email protected] |
Volerion