# CVE-2026-33173: Rails Active Storage has possible content type bypass via metadata in direct uploads

- Severity: Medium 5.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Published: 2026-03-23T20:54:16.000Z
- Modified: 2026-09-10T03:50:40.554Z
- Also known as: GHSA-qcfx-2mfw-w4cg
- Weaknesses: CWE-925
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- rails activestorage: >= 8.1.0.beta1, < 8.1.2.1; >= 8.0.0.beta1, < 8.0.4.1; < 7.2.3.1
- activestorage (RubyGems): from 8.1.0.beta1 before 8.1.2.1; from 8.0.0.beta1 before 8.0.4.1; before 7.2.3.1
- rubyonrails rails: before 7.2.3.1; from 8.0.0 before 8.0.4.1; from 8.1.0 before 8.1.2.1

## Every score

- GitHub_M: CVSS:4.0 5.3 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/rails/rails/security/advisories/GHSA-qcfx-2mfw-w4cg> (vendor-advisory, web)
- <https://github.com/rails/rails/commit/707c0f1f41f067fdf96d54e99d43b28dfaae7e53> (patch, web)
- <https://github.com/rails/rails/commit/8fcb934caadc79c8cc4ce53287046d0f67005b3e> (patch, web)
- <https://github.com/rails/rails/commit/d9502f5214e2198245a4c1defe9cd02a7c8057d0> (patch, web)
- <https://github.com/rails/rails/releases/tag/v7.2.3.1> (release-notes, web)
- <https://github.com/rails/rails/releases/tag/v8.0.4.1> (release-notes, web)
- <https://github.com/rails/rails/releases/tag/v8.1.2.1> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33173> (advisory)
- <https://github.com/rails/rails> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/CVE-2026-33173.yml> (web)

## Sources

- CVE List: [CVE-2026-33173](https://www.cve.org/CVERecord?id=CVE-2026-33173), CVE Terms of Use, modified 2026-03-24
- GitHub Advisory Database: [GHSA-qcfx-2mfw-w4cg](https://github.com/advisories/GHSA-qcfx-2mfw-w4cg), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-33173](https://nvd.nist.gov/vuln/detail/CVE-2026-33173), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-33173 · Whole record: https://cve.day/CVE-2026-33173.json · Rebuilt by cve.day 2026-11-25T22:59:16.509Z
