Rails Active Storage has possible content type bypass via metadata in direct uploads
Published 23 Mar 2026 · Updated 10 Sept 2026
Is your project on an affected activestorage?
Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- >=8.1.0.beta1 <8.1.2.1
- Fixed in
- 8.1.2.1
bundle update --conservative activestorage # Gemfile: '>= 8.1.2.1'- Affected
- >=8.0.0.beta1 <8.0.4.1
- Fixed in
- 8.0.4.1
bundle update --conservative activestorage # Gemfile: '>= 8.0.4.1'- Affected
- <7.2.3.1
- Fixed in
- 7.2.3.1
bundle update --conservative activestorage # Gemfile: '>= 7.2.3.1'Details
Impact
Active Storage's DirectUploadsController accepts arbitrary metadata from the client and persists it on the blob. Because internal flags like identified and analyzed are stored in the same metadata hash, a malicious direct-upload client could set these flags.
Releases
The fixed releases are available at the normal locations.
Credit
This was responsible reported by Hackerone researcher pwnie
Is GHSA-qcfx-2mfw-w4cg in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected activestorage, and gives you the command that fixes it.
More advisories for activestorage
- CriticalCVE-2026-122006Active Storage: Possible arbitrary file write and read in image analysis · 12 Nov 2026
- MediumCVE-2026-126084Active Storage: Unsigned Content-Type in GCS direct uploads with cache_control · 12 Nov 2026
- LowCVE-2026-126188Active Storage: Possible local file disclosure in video previews and analysis · 12 Nov 2026
- HighCVE-2026-126186Active Storage: Possible arbitrary file read and remote code execution in video previews, analysis and image processing · 10 Nov 2026
- MediumCVE-2026-126085Active Storage: Possible circumvention of file size limits in Active Storage direct uploads to Google Cloud Storage · 10 Nov 2026
- MediumCVE-2026-126074Active Storage: Possible DoS vulnerability in Active Storage filename handling · 10 Nov 2026
References
- Linkgithub.com/rails/rails/security/advisories/GHSA-qcfx-2mfw-w4cg
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-33173
- Linkgithub.com/rails/rails/commit/707c0f1f41f067fdf96d54e99d43b28dfaae7e53
- Linkgithub.com/rails/rails/commit/8fcb934caadc79c8cc4ce53287046d0f67005b3e
- Linkgithub.com/rails/rails/commit/d9502f5214e2198245a4c1defe9cd02a7c8057d0
- Packagegithub.com/rails/rails
- Linkgithub.com/rails/rails/releases/tag/v7.2.3.1
- Linkgithub.com/rails/rails/releases/tag/v8.0.4.1
- Linkgithub.com/rails/rails/releases/tag/v8.1.2.1
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/CVE-2026-33173.yml
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.