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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-03-23 · Modified: 2026-03-24
- Aliases: UBUNTU-CVE-2026-33173, DEBIAN-CVE-2026-33173, CGA-7mp5-8mcg-3qcg, CGA-8474-cjqw-25jv, CGA-2462-vm3j-24c6, CGA-25xx-79f9-rr2f, CGA-265r-vj96-2526, CGA-33ph-9jfg-m5g8, CGA-39fq-h9r5-wrph, CGA-3h27-3x35-g442, CGA-3w6w-p3hm-jcxj, CGA-4m3w-3wrq-2vq5, CGA-4wc2-5v98-7wq4, CGA-4wgw-p4c7-p9wq, CGA-5hpv-3793-749x, CGA-653x-7c47-wr29, CGA-66rw-wjmj-2vhq, CGA-68rv-9xpp-cp8x, CGA-6wr2-46jg-v3v2, CGA-76p8-397h-xm7f, CGA-7v29-mwhc-j2xp, CGA-84g3-wxq8-g9q5, CGA-96r5-2g85-95g4, CGA-c529-3xfw-fvq4, CGA-c67m-j7q9-2c64, CGA-cwvw-fq46-7crc, CGA-f3jq-6m8r-cmxv, CGA-f77q-gcpf-q9xw, CGA-frg3-pvxw-5g84, CGA-g279-pgm6-x7j8, CGA-hf6x-q247-jjwc, CGA-jwj9-8hvq-j2c8, CGA-mg5c-vxw4-5495, CGA-mvhq-7w8f-gcv7, CGA-p3cx-377g-mh9m, CGA-p63x-w8f9-rjp7, CGA-p686-jvvj-mjgh, CGA-phj6-65hf-3p69, CGA-pj6j-2gq2-mm8g, CGA-pjhw-hg5c-4jxj, CGA-pjxp-x4fm-69cw, GHSA-qcfx-2mfw-w4cg, CGA-qmh9-53f3-rxjw, CGA-qvrw-77qw-cpxr, CGA-r6x4-33j3-qpc4, CGA-r7wf-2hxp-grvp, CGA-rpxv-f94h-7cf9, CGA-v254-6c5q-r2mr, CGA-vp9w-4rjp-g7mg, CGA-w459-m8x8-24jh, CGA-wx6x-hxfm-ff7j, CGA-x2m4-jcrr-hq7r, CGA-xcvf-jvq9-mvp4, CGA-xhvp-4f4f-74h7, CGA-xqv6-w87h-vppp
- Record: https://cvemate.com/vulnerability/CVE-2026-33173 · JSON: https://cvemate.com/vulnerability/CVE-2026-33173/json

## Description

```text
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.
```

## Signals

- CVSS: 5.3 medium (v4.0, CVE.org) 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
- EPSS: 0.434%, percentile 39.492%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 32)

- chainguard gitlab-rails-ce-18.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.10 (Chainguard): \< 18.10.3-r1
- chainguard gitlab-rails-ce-18.2 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.3 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.4 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.8 (Chainguard): \< 18.8.11-r4
- chainguard gitlab-rails-ce-18.9 (Chainguard): \< 18.9.5-r0
- chainguard gitlab-rails-ce-fips-18.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.10 (Chainguard): \< 18.10.3-r0
- chainguard gitlab-rails-ce-fips-18.2 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.3 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.4 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.9 (Chainguard): \< 18.9.5-r0

## References

- <https://github.com/rails/rails/security/advisories/GHSA-qcfx-2mfw-w4cg>
- <https://github.com/rails/rails/commit/707c0f1f41f067fdf96d54e99d43b28dfaae7e53>
- <https://github.com/rails/rails/commit/8fcb934caadc79c8cc4ce53287046d0f67005b3e>
- <https://github.com/rails/rails/commit/d9502f5214e2198245a4c1defe9cd02a7c8057d0>
- <https://github.com/rails/rails/releases/tag/v7.2.3.1>
- <https://github.com/rails/rails/releases/tag/v8.0.4.1>
- <https://github.com/rails/rails/releases/tag/v8.1.2.1>
- <https://ubuntu.com/security/CVE-2026-33173>
- <https://www.cve.org/CVERecord?id=CVE-2026-33173>
- <https://security-tracker.debian.org/tracker/CVE-2026-33173>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/33xxx/CVE-2026-33173.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33173>
- <https://github.com/rails/rails>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/CVE-2026-33173.yml>

---

Data as of 2026-12-05T05:10:55.005Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
