CVE-2026-126085: Active Storage: Possible circumvention of file size limits in Active Storage direct uploads to Google Cloud Storage
Published 2026-11-10 · Updated 2026-11-10 · Also known as GHSA-hfr4-8rjc-97m2
Summary
Active Storage fails to enforce content-length constraints when generating signed URLs for Google Cloud Storage direct uploads, allowing users to bypass file size limits. Applications using Active Storage with Google Cloud Storage should upgrade to the latest patched versions to enforce size integrity.
Who is affected
Applications using Active Storage for direct uploads to Google Cloud Storage are susceptible to this flaw. An attacker can upload files larger than the declared byte_size, potentially bypassing application-level file size validations and storage quotas. This occurs because the generated signed URL lacks the necessary headers to restrict the upload body size during the direct transfer process.
Exploitability
The vulnerability has a CVSS base score of 5.3, indicating a medium severity level with a network-based attack vector that requires no special privileges or user interaction. With an EPSS score of 0.005, the likelihood of exploitation is relatively low, and it is currently not listed on the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade activestorage to version 8.1.4.1 or 8.0.5.2 to include the necessary content-length signing.
- Update the bucket CORS configuration to include x-goog-content-length-range in the responseHeader to ensure browser direct uploads function correctly after the patch.
- If immediate upgrades are not possible, apply the official patches provided by the Rails repository for versions 8.1 or 8.0.
How to check your project
- Inspect the Gemfile.lock file to identify if activestorage is within the affected ranges: 8.1.0.beta1 through 8.1.4.0 or 0 through 8.0.5.1.
- Verify the installed version by running 'bundle list | grep activestorage' in the application root directory.
Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| RubyGems | activestorage |
>= 8.1.0.beta1, < 8.1.4.1 | 8.1.4.1 | bundle update activestorage |
| RubyGems | activestorage |
>= 0, < 8.0.5.2 | 8.0.5.2 | bundle update activestorage |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | Low |
| Availability | None |
FAQ
Is this vulnerability similar to previous issues?
Yes, it is described as the same weakness that was previously addressed for the S3 service in CVE-2020-8162.
What happens if I update without changing my CORS configuration?
Browser direct uploads will fail because the browser will send the new required x-goog-content-length-range header, which must be explicitly allowed by the Google Cloud Storage bucket's CORS policy.
Does this flaw allow remote code execution?
No, the impact is limited to the circumvention of file size limits and application quotas.
Original advisory description
References
- WEB https://github.com/rails/rails/security/advisories/GHSA-hfr4-8rjc-97m2
- WEB https://github.com/rails/rails/commit/7fe85a72a789eae5ee070ce3ee1dad10a8a5f70c
- WEB https://github.com/rails/rails/commit/e19916cea31cbfb0030b165ae853b741f8dd57a7
- PACKAGE https://github.com/rails/rails
- WEB https://github.com/rails/rails/releases/tag/v8.0.5.2
- WEB https://github.com/rails/rails/releases/tag/v8.1.4.1
- WEB https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/GHSA-hfr4-8rjc-97m2.yml
Source records: GHSA-hfr4-8rjc-97m2 (OSV.dev) · EPSS by FIRST, 2026-11-26.