CVE-2026-33173: Rails Active Storage has possible content type bypass via metadata in direct uploads
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
Published Mar 23, 2026 · Updated May 13, 2026
Affected packages
activestorage
- Ecosystem
- RubyGems
- Affected
- >= 8.1.0.beta1, < 8.1.2.1
- Fixed in
- 8.1.2.1
- Check
bundle info activestorage
activestorage
- Ecosystem
- RubyGems
- Affected
- >= 8.0.0.beta1, < 8.0.4.1
- Fixed in
- 8.0.4.1
- Check
bundle info activestorage
activestorage
- Ecosystem
- RubyGems
- Affected
- < 7.2.3.1
- Fixed in
- 7.2.3.1
- Check
bundle info activestorage
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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
References
- https://github.com/rails/rails/security/advisories/GHSA-qcfx-2mfw-w4cg
- https://github.com/rails/rails/commit/707c0f1f41f067fdf96d54e99d43b28dfaae7e53
- https://github.com/rails/rails/commit/8fcb934caadc79c8cc4ce53287046d0f67005b3e
- https://github.com/rails/rails/commit/d9502f5214e2198245a4c1defe9cd02a7c8057d0
- https://github.com/rails/rails/releases/tag/v7.2.3.1
- https://github.com/rails/rails/releases/tag/v8.0.4.1
- https://github.com/rails/rails/releases/tag/v8.1.2.1
- https://nvd.nist.gov/vuln/detail/CVE-2026-33173
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/CVE-2026-33173.yml
- https://github.com/advisories/GHSA-qcfx-2mfw-w4cg
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More RubyGems vulnerabilities
All RubyGems entriesCVE-2026-122006
Active Storage: Possible arbitrary file write and read in image analysis
critical9.8Nov 12, 2026CVE-2026-126084
Active Storage: Unsigned Content-Type in GCS direct uploads with cache_control
medium4.7Nov 12, 2026CVE-2026-126188
Active Storage: Possible local file disclosure in video previews and analysis
low3.7Nov 12, 2026CVE-2026-126071
Active Storage: Possible DoS vulnerability in Active Storage proxy mode via storage errors during streaming
medium5.3Nov 10, 2026CVE-2026-126074
Active Storage: Possible DoS vulnerability in Active Storage filename handling
medium4.3Nov 10, 2026CVE-2026-126085
Active Storage: Possible circumvention of file size limits in Active Storage direct uploads to Google Cloud Storage
medium5.3Nov 10, 2026
