Arbitrary File Upload Vulnerability in Active Storage for Rails Applications by Rails
CVE-2026-33173

5.3MEDIUM

Key Information:

Vendor

Rails

Vendor
CVE Published:
23 March 2026

What is CVE-2026-33173?

Active Storage, a feature in Rails applications that allows users to attach cloud and local files, has a vulnerability that impacts versions prior to 8.1.2.1, 8.0.4.1, and 7.2.3.1. The DirectUploadsController does not adequately validate metadata provided by the client. An attacker can manipulate the metadata to set internal flags, thereby bypassing MIME detection and validations. This can lead to the upload of malicious content disguised as a safe file type. It is strongly recommended that affected users update to the patched versions to mitigate this security risk.

Affected Version(s)

activestorage >= 8.1.0.beta1, < 8.1.2.1 < 8.1.0.beta1, 8.1.2.1

activestorage >= 8.0.0.beta1, < 8.0.4.1 < 8.0.0.beta1, 8.0.4.1

activestorage < 7.2.3.1 < 7.2.3.1

References

CVSS V4

Score:
5.3
Severity:
MEDIUM
Confidentiality:
None
Integrity:
Low
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.