rails · Ruby on Rails · published 2026-03-23
CVE-2026-33173Rails Active Storage has possible content type bypass via metadata in direct uploads
Routine No exploitation evidence; EPSS 0.4%.
CVE-2026-33173 is not known to be exploited in the wild. EPSS estimates a 0.4% chance of exploitation in the next 30 days, higher than 38% of all CVEs. This Ruby on Rails vulnerability: CVSS 5.3 (v4.0). Fixed upstream in Ruby on Rails 8.1.2.1, 8.0.4.1, 7.2.3.1. Routine: patch when convenient.
Jump to: Remediation Exploit intelAffected versionsDescription
Remediation#
Fixed upstream in Ruby on Rails 8.1.2.1, 8.0.4.1, 7.2.3.1.
Patch events
Web frameworkRuby on Rails
Ruby on Rails security releases: 8.1.2.1, 8.0.4.1, 7.2.3.1
Upgrade to
8.1.2.18.0.4.17.2.3.1Why: Vendor security release for server software (most severe: CVE-2026-33195).
Exploit intelligence#
| Signal | Value | Source |
|---|---|---|
| Known exploited | No | CISA KEV |
| Ransomware use | — | CISA KEV |
| EPSS (30-day exploitation probability) | 0.4% (39th pct) | FIRST EPSS v2026.06.15 |
| CVSS base score | 5.3 (v4.0)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N | CNA / CISA ADP |
| SSVC exploitation | none | CISA Vulnrichment |
| SSVC automatable | No | CISA Vulnrichment |
| SSVC technical impact | partial | CISA Vulnrichment |
Affected versions (from the CVE record)#
- rails activestorage
>= 8.1.0.beta1, < 8.1.2.1(affected)>= 8.0.0.beta1, < 8.0.4.1(affected)< 7.2.3.1(affected)
Description (from the CVE record)#
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.
Quoted from the CVE Program record.