{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-126085","id":"CVE-2026-126085","title":"Active Storage: Possible circumvention of file size limits in Active Storage direct uploads to Google Cloud Storage","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 siz","descriptionLong":"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.","published":"2026-11-10T21:12:44.814Z","updated":"2026-11-15T02:31:03.032020556Z","reserved":"2026-11-10T17:07:43.285Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["rails"],"affectedProducts":[{"vendor":"rails","product":"rails","defaultStatus":null,"versions":[{"version":">= 8.1, < 8.1.4.1","status":"affected"},{"version":"< 8.0.5.2","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"RubyGems","name":"activestorage","purl":"pkg:gem/activestorage","ranges":[">=8.1.0.beta1 <8.1.4.1","<8.0.5.2"],"fixed":["8.1.4.1","8.0.5.2"],"advisory":"GHSA-hfr4-8rjc-97m2"}],"cwes":["CWE-602"],"aliases":["GHSA-hfr4-8rjc-97m2"],"references":[{"url":"https://github.com/rails/rails/security/advisories/GHSA-hfr4-8rjc-97m2","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/rails/rails/commit/7fe85a72a789eae5ee070ce3ee1dad10a8a5f70c","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/rails/rails/commit/e19916cea31cbfb0030b165ae853b741f8dd57a7","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/rails/rails/releases/tag/v8.0.5.2","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/rails/rails/releases/tag/v8.1.4.1","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126085.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126085","tags":["advisory"]},{"url":"https://github.com/rails/rails","tags":["package"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/GHSA-hfr4-8rjc-97m2.yml","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.0048,"epssPercentile":0.42354,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-126085","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126085","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-126085","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-hfr4-8rjc-97m2","ok":true,"note":"GHSA-hfr4-8rjc-97m2"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-126085","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":["ruby"],"critical":[],"attention":null}