{"id":"CVE-2026-33173","aliases":["CVE-2026-33173","GHSA-qcfx-2mfw-w4cg"],"related":[],"kind":"vulnerability","state":"published","title":"Rails Active Storage has possible content type bypass via metadata in direct uploads","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\nActive Storage's `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 malicious direct-upload client could set these flags.\n\n### Releases\nThe fixed releases are available at the normal locations.\n\n### Credit\nThis was responsible reported by Hackerone researcher [pwnie](https://hackerone.com/pwnie)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Active Storage permite a los usuarios adjuntar archivos locales y en la nube en aplicaciones Rails. Antes de las versiones 8.1.2.1, 8.0.4.1 y 7.2.3.1, 'DirectUploadsController' acepta metadatos arbitrarios del cliente y los persiste en el blob. Debido a que indicadores internos como 'identified' y 'analyzed' se almacenan en el mismo hash de metadatos, un cliente de carga directa puede establecer estos indicadores para omitir la detección y el análisis MIME. Esto permite a un atacante cargar contenido arbitrario mientras declara un 'content_type' seguro, eludiendo cualquier validación que dependa de la identificación automática del tipo de contenido de Active Storage. Las versiones 8.1.2.1, 8.0.4.1 y 7.2.3.1 contienen un parche.","source":"nvd"}],"published":"2026-03-23T20:54:16.000Z","modified":"2026-09-10T03:50:40.554Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-925"],"affected":[{"ranges":[{"version":">= 8.1.0.beta1, < 8.1.2.1","status":"affected"},{"version":">= 8.0.0.beta1, < 8.0.4.1","status":"affected"},{"version":"< 7.2.3.1","status":"affected"}],"vendor":"rails","product":"activestorage","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"8.1.0.beta1","status":"affected","fixed":"8.1.2.1"}],"ecosystem":"RubyGems","package":"activestorage","purl":"pkg:gem/activestorage","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"8.0.0.beta1","status":"affected","fixed":"8.0.4.1"}],"ecosystem":"RubyGems","package":"activestorage","purl":"pkg:gem/activestorage","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"7.2.3.1"}],"ecosystem":"RubyGems","package":"activestorage","purl":"pkg:gem/activestorage","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"7.2.3.1"},{"status":"affected","introduced":"8.0.0","fixed":"8.0.4.1"},{"status":"affected","introduced":"8.1.0","fixed":"8.1.2.1"}],"vendor":"rubyonrails","product":"rails","cpe":"cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/rails/rails/security/advisories/GHSA-qcfx-2mfw-w4cg","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rails/rails/commit/707c0f1f41f067fdf96d54e99d43b28dfaae7e53","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rails/rails/commit/8fcb934caadc79c8cc4ce53287046d0f67005b3e","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rails/rails/commit/d9502f5214e2198245a4c1defe9cd02a7c8057d0","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rails/rails/releases/tag/v7.2.3.1","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rails/rails/releases/tag/v8.0.4.1","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rails/rails/releases/tag/v8.1.2.1","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33173","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/rails/rails","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/CVE-2026-33173.yml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-03-24T14:14:22.499Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-33173","url":"https://www.cve.org/CVERecord?id=CVE-2026-33173","licence":"CVE Terms of Use","modified":"2026-03-24T15:12:50.569Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qcfx-2mfw-w4cg","url":"https://github.com/advisories/GHSA-qcfx-2mfw-w4cg","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:40.554Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-33173","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33173","licence":"Public domain","modified":"2026-06-17T10:37:04.677Z"}],"updatedAt":"2026-11-25T22:59:16.509Z","epss":{"score":0.00434,"percentile":0.3949,"date":"2026-12-01T12:00:22.000Z"}}