CVE-2026-33173

Rails Active Storage has possible content type bypass via metadata in direct uploads

MEDIUM
5.3
CVSS Score
Published: March 23, 2026 at 11:21 PM UTC
Updated: June 17, 2026 at 10:37 AM UTC
2 products affected across 2 vendorsRailsActive Storage

Using activestorage by rails?

Get instant alerts when new vulnerabilities affect activestorage - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.3
Exploit prediction
EPSS 0.4%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 7.2.3.18.0.0 ≤ v < 8.0.4.18.1.0 ≤ v < 8.1.2.1
v < 7.2.3.1v < 8.0.4.1v < 8.1.2.1
Affected range stops below 7.2.3.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 8.0.4.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 8.1.2.1, so it looks safe — our inference, not a vendor statement

References (7)

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.3MEDIUMGitHub_M
Vector?

Quick Info

StatusANALYZED
CWE
CWE-925

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card