CVE-2026-126085
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.
Weakness
- CWE-602: Client-Side Enforcement of Server-Side Security
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | yes |
| Technical impact | partial |
| Scored | 2026-11-14 |
Timeline
- 2026-11-10Published by the CNA21:12 UTC
- 2026-11-10GitHub advisory published (GHSA-hfr4-8rjc-97m2)same day
- 2026-11-14CISA SSVC decision recorded4 days after publication
Exploit and advisory records
GitHub advisory GHSA-hfr4-8rjc-97m2, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| RubyGems activestorage | before 8.0.5.2 | 8.0.5.2 |
| RubyGems activestorage | from 8.1.0.beta1 before 8.1.4.1 | 8.1.4.1 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| rails rails |
References
- https://github.com/rails/rails/commit/7fe85a72a789eae5ee070ce3ee1dad10a8a5f70c
- https://github.com/rails/rails/commit/e19916cea31cbfb0030b165ae853b741f8dd57a7
- https://github.com/rails/rails/releases/tag/v8.0.5.2
- https://github.com/rails/rails/releases/tag/v8.1.4.1
- https://github.com/rails/rails/security/advisories/GHSA-hfr4-8rjc-97m2
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-126085'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-126085'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-126085'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-126085'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).