# CVE-2026-126085: Active Storage: Possible circumvention of file size limits in Active Storage direct uploads to Google Cloud Storage

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-10 · Modified: 2026-11-14
- Aliases: GHSA-hfr4-8rjc-97m2, CGA-3vfj-r852-jf79, CGA-8g96-mh2m-w5qj, CGA-h47r-62c6-4mm8, CGA-qqmp-79vp-h4r4, CGA-rrm7-v5r5-6j78, DEBIAN-CVE-2026-126085, CGA-2x5q-6gjv-rx8c, CGA-3hj8-g7r9-v53p, CGA-5j42-3p2w-8q24, CGA-7rhq-fpqp-73v2, CGA-8gvq-5cj6-hc95, CGA-hf7r-qjf5-x765, CGA-hj7j-hp9j-mh6x, CGA-hpx7-r336-f5rh, CGA-jjw3-mf34-58gj, CGA-pcrr-8pcj-4px7, CGA-rcv7-8cmj-898r, CGA-rf77-q4v9-8cxh, CGA-vrhj-3m2j-5vg2, CGA-wh2c-2g2c-jwxr, CGA-wrpq-pmq8-v2j3, CGA-277c-jx9h-33w3, CGA-2mwc-4v7x-jm5r, CGA-359f-6w86-f9wp, CGA-5c6p-9953-x97w, CGA-6vjf-5g42-73qw, CGA-7mw5-gv32-7gfr, CGA-8jp4-xj8q-gv5v, CGA-8rh6-29gr-r7qv, CGA-9mxq-p64x-h92x, CGA-9xvh-g7mw-2h9v, CGA-c9pm-9gph-74cp, CGA-fv6c-jvpc-mj22, CGA-fw69-q5p9-pp2w, CGA-gq3p-66wh-mwwr, CGA-jppj-3369-cv66, CGA-mv8h-72p3-f4h6, CGA-prm6-cvgp-8jqw, CGA-qx5j-fcwv-g79h, CGA-rv37-28cg-7h95, CGA-w8w9-xchh-cj7w, CGA-87qp-mmf3-6764, CGA-pq58-2pwj-273w, CGA-pw8m-8g6f-3rjm, CGA-w2vv-fj8g-xxcx, CGA-w6gx-ff6v-jwjq, CGA-wmc3-r72v-xh59, CGA-f39j-6q2m-9xjj, UBUNTU-CVE-2026-126085, CGA-r69f-jhrp-xq33, CGA-x2p7-57fr-h8rw
- Record: https://cvemate.com/vulnerability/CVE-2026-126085 · JSON: https://cvemate.com/vulnerability/CVE-2026-126085/json

## Description

```text
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.
```

## Signals

- CVSS: 5.3 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- EPSS: 0.472%, percentile 42.477%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 33)

- chainguard commercial-gitlab-rails-ee-19.3 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-19.4 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-19.5 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-fips-19.1 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-fips-19.2 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-fips-19.3 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-fips-19.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.11 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.9 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.0 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.2 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.3 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.4 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.10 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.11 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.9 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-19.0 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-19.1 (Chainguard): All versions (No fix recorded)

## References

- <https://github.com/rails/rails/security/advisories/GHSA-hfr4-8rjc-97m2>
- <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>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/GHSA-hfr4-8rjc-97m2.yml>
- <https://security-tracker.debian.org/tracker/CVE-2026-126085>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126085.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-126085>
- <https://ubuntu.com/security/CVE-2026-126085>
- <https://www.cve.org/CVERecord?id=CVE-2026-126085>

---

Data as of 2026-12-05T04:12:58.994Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
