CVE-2026-33173
Rails: Active Storage: Rails Active Storage: Content type bypass via arbitrary metadata in direct uploads
Overview
Description
Active Storage allows users to attach cloud and local files in Rails applications. Prior to versions 8.1.2.1, 8.0.4.1, and 7.2.3.1, 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 direct-upload client can set these flags to skip MIME detection and analysis. This allows an attacker to upload arbitrary content while claiming a safe content_type, bypassing any validations that rely on Active Storage's automatic content type identification. Versions 8.1.2.1, 8.0.4.1, and 7.2.3.1 contain a patch.
Source: OX vulnerability database
Severity
5.3 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Weakness: CWE-925
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| RubyGems | activestorage | >=8.1.0.beta1, <8.1.2.1>=8.0.0.beta1, <8.0.4.1<7.2.3.1 | 8.1.2.18.0.4.17.2.3.1~> 7.2.3, >= 7.2.3.1~> 8.0.4, >= 8.0.4.1 |
Open a package to see all its vulnerabilities.
Operating systems · 12 fixes
chainguard 1 release · 6 packages
| Release | Package | Fixed in |
|---|---|---|
| gitlab-rails-ce-fips-18-10 | 18.10.3-r0 | |
| gitlab-rails-ce-18-10 | 18.10.3-r1 | |
| gitlab-rails-ce-18-8 | 18.8.11-r4 | |
| gitlab-rails-ce-18-9 +1 | 18.9.5-r0 | |
| ruby3-4-rails-8-0 | 8.0.5-r0 | |
| ruby3-2-rails-8-1 | 8.1.3-r0 |
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | rails | affected |
| 12 | rails | 2:6.1.7.10+dfsg-1~deb12u3 |
| 13 | rails | 2:7.2.2.2+dfsg-2~deb13u2 |
| 14 | rails | 2:7.2.3.1+dfsg-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| rails | 2:6.1.7.10+dfsg-1~deb12u3 |
wolfi 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| ruby3-2-rails-8-1 | 8.1.3-r0 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-33173
- github.com https://github.com/advisories/GHSA-qcfx-2mfw-w4cg
- github.com https://github.com/rails/rails
- github.com https://github.com/rails/rails/commit/707c0f1f41f067fdf96d54e99d43b28dfaae7e53
- github.com https://github.com/rails/rails/commit/8fcb934caadc79c8cc4ce53287046d0f67005b3e
- github.com https://github.com/rails/rails/commit/d9502f5214e2198245a4c1defe9cd02a7c8057d0
- github.com https://github.com/rails/rails/releases/tag/v7.2.3.1
- github.com https://github.com/rails/rails/releases/tag/v8.0.4.1
- github.com https://github.com/rails/rails/releases/tag/v8.1.2.1
- github.com https://github.com/rails/rails/security/advisories/GHSA-qcfx-2mfw-w4cg
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.